1 2 3 4 5 |
# iptables -A INPUT -s IP-ADDRESS -j DROP # iptables -A INPUT -s 65.55.44.100 -j DROP # iptables -A INPUT -s 65.55.44.100 -p tcp --destination-port 25 -j DROP |
CentOS / RHEL / Fedora Block An IP And Save It To Config File
1 2 |
# iptables -A INPUT -s 65.55.44.100 -j DROP # service iptables save |
How Do I Unblock An IP Address?
1 2 3 |
# iptables -D INPUT -s xx.xxx.xx.xx -j DROP # iptables -D INPUT -s 65.55.44.100 -j DROP # service iptables save |