[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NAT problems

On Mon, Feb 12, 2001 at 08:31:42AM +0100, Tobias Geijersson wrote:
> My firewall have these NICs:
> eth0 is connected to my IP-provider using private ip
> eth1 a.x.y.z1/27 is connected to my server segment using "real" ip
> eth2 a.x.y.z2/27 is connected to my workstation segment using "real" ip
> and now I must add a fourth net:
> eth3 ond I want to NAT those adresses when they access
> internet (through eth0)
> The problem is that when I add the rule for masqurading it translates
> all to eth0's before routed to my ip
> provider, and that adress is a private one and will not work!

Shouldn't it be possible to masquerade using say eth2 instead of eth0?
And therefore appear to be coming from the address taht eth2 has even
though you are being routed back out through eth0?

So something like
/sbin/ipchains -A forward -i eth2 -j MASQ

Jeremy Lunn
Melbourne, Australia

Reply to: