Rules created with the iptables command are stored in memory. If the system is restarted before saving the iptables rule set, all rules are lost. For netfilter rules to persist through system reboot, they need to be saved.
# iptables -I INPUT 5 -m tcp -p tcp --dport 80 -j ACCEPT # iptables -I INPUT 5 -m tcp -p tcp --dport 10000 -j ACCEPT
# sudo service iptables save
# service iptables restart
No comments:
Post a Comment