I am doing this for every machine on my lan has a range of 200 ports on
the public ip which is useful for incoming connections to apps which can
be reconfigured for eg. realplayer, icq etc...

how about just putting a SNAT line in as well? and forget the iproute2
stuff.

On Mon, 24 Dec 2001, George Vieira wrote:

> hi all,
>
> Firstly - Merry Christmas to all,
>
> My question (for hopefully the rest of this year) is how do you use in
> conjunction with iptables to NAT a few servers out the internet with their
> public external IPs using iproute2 (so I've been told can do it) ?...
>
> $IPTABLES -t nat -A PREROUTING -i $EXTDEV -d 203.x.x.x.x -j DNAT
> --to-destination 192.168.0.1
>
> I've have worked out the incoming using DNAT/IPTABLES (as above) but the
> outgoing and iproute2 has confused me or have I gotten things mixed up? I've
> been told that iproute2 has to do this... but some examples I've tried were
> total screw ups.
>
> thanks,
> George Vieira.
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
>

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to