[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-net
Subject:    Re: static routing
From:       Gregory Maxwell <greg () linuxpower ! cx>
Date:       2000-07-29 3:06:55
[Download RAW message or body]


Option 1:

Turn off masq.
Turn on up forwarding
proxy arp your inside addresses on the external interface
create route(s) pointing to your internal boxes on the internal interface.

Option 2:

Turn off masq.
Become one with the kernel source (or look for old posts on Linux
kernel) so you can figure out how to use FAST NAT (I posted distructions
once, but I can't recall)
Use 1-1 natting to map your internal address to external addresses

Option 3:

Upgrade to 2.4test
use netfilter to perform 1-1 nat like above
(net filter is actually documented).



On Fri, 28 Jul 2000, Brian Klug wrote:

> Hi.  Hope someone can help me with some route command examples.
>  
> 1. I have four IP's assigned to my DSL modem, which has a 10BaseT
> connection.
> 2. I have several computers plugged into my 100BaseT hub.
>  
> I have a Linux box with 2 network cards - one 10BT card for the DSL
> modem, and one 100BT card for my local LAN.  I am currently doing IP
> MASQ and it works well.
>  
> My question:  I am only using one IP from the modem to my 10BT card -
> how can I assign/route/transfer/tunnel the other three IPs to the other
> pcs on the local net?
>  
> If my DSL modem had a 100BT connection, I could just plug that into the
> hub, and assign the three IPs directly to the machines.  But that is not
> the case -- I will have to do some strange routing though my Linux box.
> Is it possible to say something like
>  
> to Linux: "Any connections coming in on those three IPs,
> 64.50.146.19,64.50.146.20,64.50.146.21, please route that to
> 192.168.1.2, 192.168.1.3, and 192.168.1.4, respectively."
> to windows 98 box (192.168.1.2):  "Please pretend you are 64.50.146.19,
> you will get this through 192.168.1.1).
> to windows 98 box (192.168.1.3):  "Please pretend you are 64.50.146.20,
> you will get this through 192.168.1.1). 
> to windows 98 box (192.168.1.4):  "Please pretend you are 64.50.146.21,
> you will get this through 192.168.1.1).
>  
> So this is purely a routing issue.  I can't just plug everything into my
> 10/100 hub.  That would be to easy.  I want to do this without any extra
> hardware, too.
> 
> Thanks,
> Brian Klug
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.rutgers.edu
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic