LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-12-2002, 09:51 AM   #1
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
DMZ Routing


Hello all networking gurus, I have a problem that I'd really like fixed.

I currently have a T1 coming into my location, a cisco router with 1 wan 2 lan ports. One side of the lan is protected for all internal clients, the other is my DMZ with public internet IPs. The internal clients do access the DMZ machines and I'm having trouble routing this.

The DMZ machines are located on-site, just on a different Lan port to scrutinize privacy. I have added into these DMZ machines 2 Linux machines, one controls Email/DNS, the other secondary Email/HTTP. In the secondary machine I have two nics, one connected to the switch for the dmz, one to the switch for the local clients. I figured it makes more sense to route my local clients "around" my cisco(as it's ports are only 10mbit) by using this setup. Problem is, they won't route around it! An example would be as follows:

Machine A: 192.168.0.7 -- Client
Machine B: 66.64.33.88 -- DMZ Email/HTTP Machine NIC1
Machine B: 192.168.0.15 -- DMZ "client" NIC2

On Machine A(win2k):
route add 66.64.33.0 mask 255.255.255.0 192.168.0.15
route add 192.168.0.0 mask 255.255.255.0 192.168.0.1
On Machine B(Linux):
route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.15
route add -net 66.64.33.0 netmask 255.255.255.0 gw 66.64.33.1

In reality this should effectively send traffic from machine A, bound for anything on or around Machine B through B.

My question(after this long discussion) is do I need to invoke iptables to get the machine to forward packets along, or does it automatically? I ask because using FTP to watch packet bandwidth, I see only around 500k transfers to machines on B's subnet from A, vice versa is also true. Since both use 100mbit cards/switches they should be closer to 5000k.

Thanks for the help, let me know if any more details are needed.
 
Old 12-19-2002, 12:26 AM   #2
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Yes you need to use some sort of packet sensing tool. Either iptables or ipchains. I personally use iptables b/c I feel it is more straight forward and easier to learn. You basically need the average firewall routing script minus the firewall part. If you want I can help you out more with writing the actual script once I get my main system back online. Right now I have no access to my router except via direct console and my script is on it.
 
  


Reply



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 help... phishman3579 Linux - Networking 19 12-10-2005 12:58 AM
what is dmz blackzone Linux - Networking 3 01-06-2005 05:46 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
DMZ help phishman3579 Linux - Security 1 07-15-2003 04:47 PM
Samba in the DMZ Bomber Linux - Networking 12 12-14-2002 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:57 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
Open Source Consulting | Domain Registration