Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-03-2006, 09:33 PM   #1
LQ Newbie
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Rep: Reputation: 15
Smile configuring LAN + DMZ through IPTables with an ADSL Connection.

hi all
I'm trying to build a firewall in debian 3.1 using IP Tables. I am currently using Endian Firewall Community edition and it works great but i wish to learn more about iptables and theres no way of learning something quite like doing it yourself.

i've never used IP tables before so all the lingo of chains and tables isn't making much sense.

here is my network structure.


the firewall will be configured as follows.
eth0 > ADSL connection
eth1 > LAN
eth2 > DMZ

if someone would be able to point me in the right direction to some good documentation or if its simple enough to show me what to do that would be great. I host my own website and email server so all i wish to do is allow a few ports in and most of them out. not allowing anything into the LAN network at all.

if this is something rather simple please kick me in the backside for not knowing this already.

thanks alot.

PS sorry if the formatting of my diagram above comes out looking odd. it looked correct when i wrote the post.

Last edited by Braytac; 10-04-2006 at 12:19 AM.
Old 10-04-2006, 04:15 PM   #2
LQ Newbie
Registered: Nov 2004
Posts: 18

Rep: Reputation: 0

Please find the below link for good documentation.

Thanks & Regards

Old 10-04-2006, 04:19 PM   #3
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check out this page.
There are some scripts and the one that multi-homed should be what you are after. Use it myself for a start with 5 nic setup. Currently only using 4. The fourth is the wireless side. 5th was for second channel internet bonding. Never got it quite right yet.

If you mean ipchains and iptables. They are two completely seperate packet filtering tools. iptables is used on newer 2.4 and current 2.6 kernels. ipchains was in maybe early 2.4 and 2.2 kernels. ipfrwd I think was in 2.0 kernels.

Old 10-06-2006, 05:57 AM   #4
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,576

Rep: Reputation: Disabled
I found this quite instructve:


as it explains a lot of the basics.


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
DMZ IPtables setup JoeMoer Linux - Networking 1 09-10-2004 09:01 PM
True DMZ using iptables chrisfirestar Linux - Security 8 03-10-2004 03:15 AM
IPTABLES - LAN can't get to DMZ with public IP dknell Linux - Security 4 02-28-2002 08:02 AM
IPTABLES and DMZ Host htimst Linux - Security 1 12-21-2001 07:04 AM
Setting up DMZ with iptables.... ghost-ils Linux - Networking 0 09-09-2001 07:14 PM > Forums > Linux Forums > Linux - Networking

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