IPTables

Andy_m

Verified User
Joined
Aug 12, 2009
Messages
11
Hey All

Well first of all I cannot get them to play nice, I SSH'ed this command
Code:
iptables -A INPUT -p tcp -m tcp --dport 2222 -j ACCEPT
to add 2222 so when the server reboots I can login to DA. Since doing that it wont hold its value upon reboot and I have to disable iptables to login, but now its even affected port 33 for SSH.
Its becoming a nightmare so I thought about disabling the firewall all together.

So how do I either, add 2222, 33 to the iptables permanently or disable it on startup which google has yet failed to find for me.
 
do this
Code:
/etc/init.d/iptables save
after you are Appending or Inserting rules in IPTables, and after restart, everything will be as was :)

Cheers!
 
do this
Code:
/etc/init.d/iptables save
after you are Appending or Inserting rules in IPTables, and after restart, everything will be as was :)

Cheers!

I tried this and restarted without any success, but thanks for the reply
 
Back
Top