Scott,

Another technique is

edit your table and insert your new rule

# vi /etc/sysconfig/iptables
#iptables-restore /etc/sysconfig/iptables

Good info here >>> http://www.faqs.org/docs/iptables/index.html

CJ

On 09/25/2010 07:19 AM, Scott Hughes wrote:
Thanks Eric. I'll try editing IPtables directly and restarting the service as 
you suggest.

Scott


On Sep 25, 2010, at 8:39 AM, Eric Broch<ebr...@whitehorsetc.com>  wrote:

On 9/25/2010 7:01 AM, Scott Hughes wrote:
I have changed my SSH port for security reasons. I updated the firewall.sh 
script to open the correct port and close the old port. I then ran the script 
then issued the IPtables-save command to save the changes. Now when I reboot 
the server I have to run the firewall.sh script to access the server via ssh 
(from the console).

What am I doing wrong? I am running CentOS 5.5 32-bit.

Thanks,
Scott




---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
     Vickers Consulting Group offers Qmailtoaster support and installations.
       If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
      Please visit qmailtoaster.com for the latest news, updates, and packages.

       To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
      For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


I think with 'iptables-save' you have to use redirection to a file. Use the 
command 'service iptables save' (no hyphen).
Use the command 'iptables -L -n' to see if your change has been saved.

I always simply add the rule I want to the file /etc/sysconfig/iptables and 
restart iptables (service iptables restart)



---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
         To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
    For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
     Vickers Consulting Group offers Qmailtoaster support and installations.
       If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
      Please visit qmailtoaster.com for the latest news, updates, and packages.

       To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
      For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



--
Cecil Yother, Jr. "cj"
cj's
2318 Clement Ave
Alameda, CA  94501

tel 510.865.2787
http://yother.com


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
    For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


Reply via email to