PDA

View Full Version : [ubuntu] Removing iptables rules set by firestarter



dev.urandom
January 18th, 2009, 12:17 PM
Hi,

I installed firestarted some time ago, in order to test its connection sharing. Later I decided to purge it, but it left some iptables rules somewhere on the system. I can't find them, and they are set to drop everything.

I want to remove them, but I don't know where exactly they are being set. I've grepped all of /etc, but I couldn't find anything relevant. Also, setting up my own rules, and calling them from /etc/network/interfaces doesn't work, apparently the stale firestarter rules are called afterwards, overriding mine.

So any hints as to where I should look?

superprash2003
January 18th, 2009, 05:39 PM
this should help removing iptable rules http://www.prash-babu.com/2008/10/how-to-flush-or-remove-all-iptables.html

dev.urandom
January 18th, 2009, 06:22 PM
Like I said, I know how to create my own rules. But I don't want to do it every time I boot.

dragos_iliescu_2005
January 18th, 2009, 07:05 PM
/etc/iptables.up.rules

dev.urandom
January 19th, 2009, 05:56 PM
no such file exists, and no script from /etc seems to be trying to call it

dragos_iliescu_2005
January 20th, 2009, 08:31 PM
That is completely strange. The file must to exist. Anyway try to install Webmin and to manage the iptable (Linux Firewall) by this way. Try create the file, I don't know if works.
If Firestarter is out from your system and all the settings of security is no longer exist, maybe this is the reason of "drop all". There is no rule (no file) to accept traffic.

kevdog
January 21st, 2009, 12:04 AM
Just save all your firewall commands to a script file, and then simply run the script on startup. That's an easy solution.