LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-07-2003, 11:37 AM   #1
cuboctahedron
Member
 
Registered: Nov 2002
Posts: 70

Rep: Reputation: 15
locked myself out with firewall


Hi,
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
Patrick
 
Old 05-07-2003, 12:21 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
As root user, type:

"lokkit"

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.

-twantrd
 
Old 05-07-2003, 01:23 PM   #3
Crashed_Again
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, 02:54 PM   #4
Hangdog42
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 -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
 
Old 05-07-2003, 03:15 PM   #5
Crashed_Again
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
 
  


Reply


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 10:09 PM
locked in my own firewall ridertech Linux - Newbie 1 02-20-2004 05:08 PM
Locked out downinthemine Mandriva 1 10-28-2003 04:00 PM
firewall ports locked down nath Linux - Newbie 4 07-03-2003 09:46 PM
locked out of X VioLaToR Linux - Newbie 15 11-12-2002 04:36 AM


All times are GMT -5. The time now is 09:13 PM.

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