LinuxQuestions.org
Review your favorite Linux distribution.
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 02-20-2004, 05:57 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
locked in my own firewall


I'm trying to setup my workstation, starting with a minimal debian install. There will be no services running and I want it secure, however, my iptables are blocking me from the outside. I'm using the rules below (having tried both commented lines as well)...

iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

# iptables -A INPUT -i eth0 -p icmp -j ACCEPT
# iptables -A INPUT -p tcp --dport 80 -j ACCEPT

iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT

So far there has been no escape, can anyone help punch the right holes?
 
Old 02-20-2004, 06:08 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
You drop EVERYTHING from outside, even replies to your own requests. Add
iptables -A INPUT -m state --state ESTABLISHED, RELATED -j ACCEPT
 
  


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 11:09 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 myself out with firewall cuboctahedron Linux - Newbie 4 05-07-2003 04:15 PM
locked out of X VioLaToR Linux - Newbie 15 11-12-2002 05:36 AM


All times are GMT -5. The time now is 06:27 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