Download your favorite Linux distribution at LQ ISO.
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-27-2003, 06:50 AM   #1
LQ Newbie
Registered: Oct 2003
Distribution: Gentoo 1.4
Posts: 4

Rep: Reputation: 0
real routing under nat routing

I have a network of about 6 computers, going in and out.

They are currently nat'd by a broadband 'router'.

I have an old pmac 6100 i'm using for various tasks (nagios, nessus, bind replication, etc), so it's not too busy. I want to use it as a router for the network, which simply throttles and shapes network traffic, before handing it to the nat router for transport.

The linux box has one nic, and i don't think it's desireable to route back through it, but rather have all data comming from the nat router go directly to the hosts who need it.

This works if i set the linux box as the default route on various hosts (mainly MacOS X), but only partially - the boxes will discover the broadband router at some point, and use it instead.

How can I make my scenario work?

Setting up a second NIC will be a complex operation, and theoretically doesn't seem necessary. Am I right?

Thanks in advaance!
Old 10-27-2003, 06:56 AM   #2
Registered: Apr 2003
Location: UK
Distribution: Slackware 9.1
Posts: 30

Rep: Reputation: 15
I'm pretty sure that the 2nd NIC is the right and most secure way to go. Read the Masquerading HOWTO to find out more information.
Old 10-27-2003, 07:03 AM   #3
LQ Newbie
Registered: Oct 2003
Distribution: Gentoo 1.4
Posts: 4

Original Poster
Rep: Reputation: 0
The thing is that the nat router already has to NICs, and does masquerading..

I only want the old machine to shape the traffic coming out of the local network, into the nat router.
Old 10-27-2003, 08:49 AM   #4
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
so what u want is for the traffic to come out of a box, to the router, out of the router to the MAC , do some stuff in the MAC and then back out to the router?

sounds bad. you can get a second NIC, put the computers behind it, and not NAT. you dont HAVE to Nat. (Atleast not in Linux you dont)
Old 10-27-2003, 03:11 PM   #5
LQ Newbie
Registered: Oct 2003
Distribution: Gentoo 1.4
Posts: 4

Original Poster
Rep: Reputation: 0
What i'd like is in one scope all outbound traffic to go to one of the boxes on the net, and for it to send data to the router. What is happenning is that the other machines are bypassing the linux box, and sending data to the nat router instead...

Secluding the router from the other comps is prolly the way to go, but it seems a bit excessive....


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
Two-way NAT routing MPowers Linux - Networking 3 06-24-2005 03:24 PM
nat routing vaat Linux - Networking 11 02-16-2005 10:02 AM
routing through nat booyah Linux - Networking 3 01-17-2004 08:40 PM
Routing behind NAT bax *BSD 5 04-26-2003 05:38 PM
Routing and nat Morning_Star Linux - Networking 5 02-11-2003 11:31 AM > Forums > Linux Forums > Linux - Networking

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