hi,
today i wanted to open a port in my server.....and after doing that and saving the changes using the following two commands
Code:
/sbin/iptables -I INPUT -p tcp --destination-port 22671 -j ACCEPT
Code:
/sbin/iptables-save > /etc/sysconfig/iptables
and after issuing this command to check the rule
I saw the rule....but all the rules that I previously made just disappeared!!! yet everything works OK!!!! Now After a reboot and issuing the previous command....now this is what I see
Code:
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Empty!!!! Previously I opened port 33100 for bittornado....and it is still opened since i can leech/seed...
So how come i cant list the rules....
ThnX
*EDIT*
This is the contents of /etc/sysconfig/iptables
Code:
# Generated by iptables-save v1.3.0 on Wed Jan 18 19:00:02 2006
*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [67:5916]
:OUTPUT ACCEPT [74:10200]
-A INPUT -p tcp -m tcp --dport 22671 -j ACCEPT
COMMIT
# Completed on Wed Jan 18 19:00:02 2006
yet I dont see "-A INPUT -p tcp -m tcp --dport 22671 -j ACCEPT " when I list the rules!!!