Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Centos 6 iptables settings
- # just want to block port
- iptables -I INPUT -m set --match-set countryblock 10.0.0.32 -j DROP
- #iptables -A INPUT -s 10.0.0.32 -j DROP
- iptables -I INPUT -s 10.0.0.32 -j DROP
- service iptables save
- service iptables reload
- iptables -L
- #Unblock IP
- iptables -D INPUT -s 10.0.0.32 -j DROP
- \
- Centos7 firewalld settings
- iptables -F
- iptables -X
- firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='10.0.0.31' reject"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement