LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-03-2006, 10:33 PM   #1
Braytac
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.

>>>>>>>>>>DMZ
^
Net>>>>Firewall>>>>>LAN

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.
Braytac

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 01:19 AM.
 
Old 10-04-2006, 05:15 PM   #2
jaz_comp
LQ Newbie
 
Registered: Nov 2004
Posts: 18

Rep: Reputation: 0
Hi,

Please find the below link for good documentation.

http://www.iptablesrocks.org/


Thanks & Regards

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

Rep: Reputation: 61
Check out this page. http://www.linuxguruz.com/iptables/
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.

Brian
 
Old 10-06-2006, 06:57 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,688

Rep: Reputation: Disabled
I found this quite instructve:

http://iptables-tutorial.frozentux.n...-tutorial.html

as it explains a lot of the basics.
 
  


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


All times are GMT -5. The time now is 05:47 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration