(E-Mail Removed) (Nelson Castillo) wrote in message news:<(E-Mail Removed). com>...
> Hi.
>
> I'd like to route a real IP behind a static NAT.
>
> INTERNET
> |
> |
> eth0 = REAL IP 1
> ROUTER with Linux
> eth1 = private IP <<< this must be on same subnet as REAL IP 2
> |
> |
> HUB <<< this is just a signal re-generator,
everything in will go out all ports
> |
> |
> eth0 = REAL IP 2 <<< both ends must be on same subnet
> SERVER 1
>
> Can I route traffic to the REAL IP 2?
> How should I do it?
This is what a dmz is for -- a subnet you host to offer public (real
IP) services.
> REAL IP 1 and REAL IP 2 are in the same subnet.
A dmz capable router _may_ make more sense for your situation. With
Linux, you need a third (dmz) nic installed to keep the public segment
separate from the private lan segment.
> I've read some documents but I still dont't
> know how to set this up.
That's the first sign that this is not a good setup to deploy. Nics
are so cheap these days that it doesn't make sense to avoid the $20.
And it's a _whole_ lot easier to set up and maintain. Your proposed
setup offers _no_ advantages and lots of headaches.
> I guess I have to put a fake ARP entry in eth0
> and add a host route in the ROUTER...
And a bunch of other tricky entries as well. All the "tricks" you
perform to get it up, you will have to maintain and troubleshoot
around. I wouldn't think of doing it this way unless someone was
paying me. You would certainly learn a lot and might have this going
smoothly by Christmas -- assuming you don't have any surprises.
> Regards,
> Nelson.-
I'm not saying, "you _cannot_ do this, Grasshopper", but it would be
_very_ much easier to set up a "standard" configuration.
inet ----- (e0)Linux router (e2)----- private lan (hub or switch)
|
(e1 to public dmz)
|
public server
Make your life easier -- you deserve it.
hth,
prg
email above disabled