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?
Thanks, Anthony
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?
On 06/03/2013 05:23 PM, 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?
I'm running F18 and, no, I did not disable firewalld. I'm completely new to configurable firewalls and didn't even know firewalld was running. I assumed iptables was the default firewall in place. lol
Anthony
On 06/04/13 07:07, Anthony wrote:
On 06/03/2013 05:23 PM, Ed Greshko wrote:
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?
I'm running F18 and, no, I did not disable firewalld. I'm completely new to configurable firewalls and didn't even know firewalld was running. I assumed iptables was the default firewall in place. lol
Start here....
https://fedoraproject.org/wiki/FirewallD
On 06/04/13 07:21, Ed Greshko wrote:
Start here.... https://fedoraproject.org/wiki/FirewallD
You may also benefit from this....
http://fedoraproject.org/wiki/Systemd
On 06/03/2013 06:30 PM, Ed Greshko wrote:
On 06/04/13 07:21, Ed Greshko wrote:
Start here.... https://fedoraproject.org/wiki/FirewallD
You may also benefit from this....
Thank you!
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