Сохраняем правило типа:
# Generated by iptables-save v1.4.7 on Wed Jul 30 16:21:23 2014
*filter
:INPUT ACCEPT [1406340230:1549597118837]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1608244636:3597064088734]
:ISPMGR - [0:0]
-A INPUT -j ISPMGR
-A INPUT -s 146.120.110.200/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 146.120.110.201/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 146.120.110.202/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 146.120.110.203/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 146.120.110.204/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 146.120.110.205/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 146.120.110.206/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 146.120.110.207/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -s 127.0.0.1/32 -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 81 -j DROP
-A OUTPUT -j ISPMGR
COMMIT
# Completed on Wed Jul 30 16:21:23 2014
Восстановить параметры:
iptables-restore /root/ip
|
|
|