How to pass two routers

JB jb.1234abcd at gmail.com
Thu Sep 9 06:32:56 UTC 2010


Gordon Messmer <yinyang <at> eburg.com> writes:

> 
> There's no need to use NAT, proxy servers, or oddball iptables rules to 
> accomplish what roland described.
> 
> As Dario pointed out, you have two options:
> 
> 1) Set up a static route on each server in LAN A so that they use 
> 192.168.0.99 as their default gateway and 192.168.0.98 as the gateway 
> for the network in LAN B.  You can configure the route using Fedora's 
> network configuration tools.
> 
> 2) Set up a static route on the router at 192.168.0.99 using 
> 192.168.0.98 as the gateway for the network in LAN B.  This will 
> simplify the configuration of all of the servers in LAN A, since they 
> don't need a route of their own.

Hi,

No, I think you missed Roland's point.

> What do I have to configure, on the server on site A, to pass everything,  
> that comes in on port XX, to server 192.168.1.1 through gateway  
> 192.168.0.98
His point is to treat requests coming to port XX of the internal server
specially.
He wants to "forward" (presumably transparently) these requests to the actual
server that is on an external network.
You can do that with either:
- a proxy server
- specially crafted NAT and forwarding rules in iptables

What you and Dario described is configurations of routing tables.
JB





More information about the users mailing list