On 06/04/2013 03:53 AM, Ed Greshko wrote:
On 06/04/13 05:35, Anthony wrote:
> I'm playing around with iptables and have inserted a few new rules.
> Now, I want to flush them all so I use
>
> iptables -F
>
> Then, I restart the firewall with
>
> service iptables restart
>
> and everything looks like it's restarting alright. But when I list the
> rules using
>
> iptables -L
>
> I get a list of rules THAT INCLUDE all of the rules I've defined
> before the flush!
>
> Am I reading this wrong or is something weird with my iptables?
>
First, I think it is best to confirm the version of Fedora you're running. Also,
you're wanting to use the iptables service so, you've disabled firewalld and
enabled iptables?
If you are using iptables, then after an iptables rules flush/change,
you need to do a 'service iptables save' to make the rules flush/change
persistent*, before the iptables restart.
*/etc/sysconfig/iptables
--
Regards,
Rejy M Cyriac (rmc)