Re: How to activate NAT in 2.2.1x ?

From: Gregory Maxwell (greg@linuxpower.cx)
Date: Fri Jun 02 2000 - 07:30:50 EST


#Translate 10.10.55.99<->123.123.13.178
/sbin/ip rule add from 10.10.55.99 nat 123.123.13.178 table main
/sbin/ip route add nat 123.123.13.178 via 10.10.55.99 table local

On Fri, 2 Jun 2000, Wolfgang Wegner wrote:

> Hi,
> [...]
> > I presume you know about the input, output and forward chain of ipchains?
> > You can set the default forward policy to masquerade, and thus enable NAT,
> > like this:
> >
> > #Set default forward policy to masquerade
> > ipchains -P forward MASQ
> sorry, i think i was a bit too unspecific...
> I do already have masquerading enabled (the simplest form of NAT), but
> what i want is "real" NAT to specific addresses. (i.e. i have a host
> A whose packets are tunneled to gateway G, who shall translate A's
> address to B and act as B in the local net via proxy-arp.)
> I have the whole setup running (tunnel, proxy-arp and masquerading),
> the only missing link is NAT to make A look as B in G's local network.
>
> Hope this makes it clearer, despite A, B, and G... ;-)
>
> Regards,
> Wolfgang
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:15 EST