Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-07-2003, 12:37 PM   #1
Registered: Nov 2002
Posts: 70

Rep: Reputation: 15
locked myself out with firewall

I am using mandrake9.1 and had a webserver running.
Running the default firewall, I was still able to ping my computer, so I wanted to make some adjustment using webmin in order to secure it more.

I dont really know what I did, but I cannot access any webpage anymore (inclusing the browserbased webmin of course).

Does anyone know, how to set the firewall back to default again?

kind regards
Old 05-07-2003, 01:21 PM   #2
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
As root user, type:


and select no firewall. That's not default settings but at least u won't be denied of any service when u access your machine. Then, from this point you can start editting your firewall. BTW, this works for redhat, not sure if it can be applied to Mandrake.

Old 05-07-2003, 02:23 PM   #3
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Although twantrd's suggestion may work I think it would be safer to simply flush all your current firewall rules. Assuming you are using iptables you can do:

iptables -F

as root. I'm not sure what webmin uses for creating firewalls exactly.
Old 05-07-2003, 03:54 PM   #4
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
I'm willing to admit I'm wrong about this, but I think iptables -F only flushes the chains and leaves the table policy in place. So if you are like me and have all your table policies set to DROP, iptables -F completely locks down all traffic.

You're probably better off writing a quick iptables script

iptables -P INPUT ACCEPT
iptables -F
Old 05-07-2003, 04:15 PM   #5
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmm...maybe your right. Okay then just shut the service off:

/etc/init.d/iptables stop


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
locked out kwickcut Mandriva 6 11-14-2005 11:09 PM
locked in my own firewall ridertech Linux - Newbie 1 02-20-2004 06:08 PM
Locked out downinthemine Mandriva 1 10-28-2003 05:00 PM
firewall ports locked down nath Linux - Newbie 4 07-03-2003 10:46 PM
locked out of X VioLaToR Linux - Newbie 15 11-12-2002 05:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration