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 <[email protected]> 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: [email protected]
>>      For additional commands, e-mail: [email protected]
>> 
>> 
> 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: [email protected]
>    For additional commands, e-mail: [email protected]
> 
> 

---------------------------------------------------------------------------------
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: [email protected]
     For additional commands, e-mail: [email protected]


Reply via email to