Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-03-2002, 11:20 PM   #1
LQ Newbie
Registered: Mar 2002
Posts: 29

Rep: Reputation: 15
Iptables ruleset

I want to use this ruleset as the base for mine. All i want to do is block everything and add rules as i need them. I just need to be able to surf the net and get on irc & ftps for now. What i don't understand about that ruleset is last 3 rules "-j firewall" stuff. What does that do, why isn't it -j DROP or REJECT? I searched here for it but couldn't find anything about that. I am also using NAT.. Any help would be appriciated.
Old 04-04-2002, 02:58 AM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Those last 3 entries refer to a "chain" called firewall.
This was created a few lines back as
#Set up the firewall chain
This chain logs and drops everything that doesn't match previous rules. If it gets to the last 3 entries, it is not wanted.
Basically, this script does what the intro to it says.
Add lines to ACCEPT protocols/packets.
Oskar's script is written in a very different way from this one. You will need to draw yourself a network picture then see which way you want to go.


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
IPtables failing to load: unknown ruleset bureado Linux - Software 3 06-19-2008 10:32 PM
Stealth iptables ruleset Mux Linux - Security 10 02-21-2007 02:54 AM
Problem with Arno's IPTables ruleset? slacquer Slackware 1 01-26-2004 09:06 AM
iptables ruleset for nameserver DaveL Linux - Newbie 4 01-07-2003 12:11 AM
Iptables ruleset Paul_assheton Linux - Networking 1 08-31-2002 07:01 AM > Forums > Linux Forums > Linux - Security

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

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
Open Source Consulting | Domain Registration