you may need to post your rules here so they can be modified in full. at the moment we cant really say for sure where to add or delete rules, it's just guessing really.
Whenever I update my rules I do it from a script because it's easier to edit and follow. Once I have the rules I want I then just do the iptables save and let the startup script sort it out on reboots.
Main Topics
Browse All Topics





by: fosiul01Posted on 2009-04-29 at 05:34:28ID: 24259680
do this
iptables -P INPUT DROP [ so it will bloack any input]
iptables -A INPUT --source xx.xx.xx.xx -p tcp --dport 22 -j ACCEPT [ it will only allow from selected Ip ]
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
then Save the iptables rules
then restart