LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I disable/stop iptables/Guarddog? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-disable-stop-iptables-guarddog-618672/)

pofadda 02-04-2008 04:30 PM

How do I disable/stop iptables/Guarddog?
 
Simple problem but no help found in manual/searchers: how do I turn my firewall off? I'm currently fiddling with Samba and fear that I maybe killing it with a misconfigured firewall.

I have recently installed (and updated) Sidux, kernel 2.6.23.14 so everything is up-to-date.

BrianK 02-04-2008 05:23 PM

to temporarily turn it off, you can do it through startup scripts, i.e., as root:

/etc/init.d/iptables stop

to stop it permanently, remove the link from your default runlevel. i.e. "rm /etc/rc2.d/S30iptables" - or whatever it's called.

sydney-troz 02-04-2008 05:26 PM

In Guarddog, go start the firewall configuration manager and go to the Advanced tab. Check Disable Firewall and go OK. To disable it from the command line, although not a persistent solution, use

Code:

$ sudo iptables -F
$ sudo iptables -X
$ sudo iptables -P INPUT ACCEPT
$ sudo iptables -P FORWARD ACCEPT
$ sudo iptables -P OUTPUT ACCEPT

EDIT: beat me to it, had the edit page open too long :D

pofadda 02-04-2008 05:36 PM

Such a rapid response! I stepped away to watch 'Damages' in the box and came back to two (yes, TWO) totally valid answers!

Many thanks BrianK and sydney-troz.


All times are GMT -5. The time now is 01:14 PM.