<br><br><div><span class="gmail_quote">On 5/18/06, <b class="gmail_sendername">Hongwei Li</b> <<a href="mailto:hongwei@wustl.edu">hongwei@wustl.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> First you should set the iptables rules to what you desire. Then you should<br>> save them with<br>><br>> iptables-save > /etc/sysconfig/iptables<br>><br>> and having set the settings I refered to to "yes", the iptables should
<br>> survive after a reboot.<br>> It works perfectly with my system. I think the problem is that you<br>> rebooted/restarted<br>> iptables before setting them up, and that's why you don't get any rules now.<br>
><br>-- NO. I did exactly as what you said:<br>1. set my rules in /etc/sysconfig/iptables</blockquote><div><br><br>No, you did not understand what I meant by setting the rules. I meant manually giving all<br>the necessary iptable commands from the command line to set up your firewall to your 
<br>liking. I did NOT say anywhere that you should edit the /etc/sysconfig/iptables file. So here<br>we go again:<br><br>1) Edit /etc/sysconfig/iptables-config and change to "yes" both the IPTABLES_SAVE_ON_STOP,
<br>IPTABLES_SAVE_ON_RESTART options<br><br>2) If you like the CURRENT firewall setup that you see by giving the command:<br><br>iptables -v -L<br><br>proceed to step 3, otherwise issue the necessary 'iptables' commands from the 
<br>command line to fix the firewall settings to your liking. Alternatively you can use <br>the GUI from the Administrator Menu to get a basic firewall going.<br><br>3) Now with the CURRENT firewall all set you can save it by giving:
<br><br>iptables-save > /etc/sysconfig/iptables<br><br>4) Let's test the whole thing now by giving:<br><br>/sbin/service iptables restart<br><br>You should be able to see the exact same firewall settings now, as before the restart, which
<br>is an indication that the settings survived. <br><br>Filippos<br><br><br></div></div><br>