routing

Joe McDonagh joseph.e.mcdonagh at gmail.com
Fri Sep 25 14:12:56 UTC 2009


Jim Tarvid wrote:
> I will shortly be in a position of routing a 192.168.0.0/16 network to
> an x.y.z.0/24 public address network. What is the easiest way to give
> the private ip clients public ip addresses? I am running 9.04 but will
> upgrade to 9.10 after testing.
>
>   
Give the internal clients their public IP address as an alias, then I 
think something like:

iptables -A FORWARD -i $EXT_IF -o $INT_IF -d $PUBLIC_ADDRESS -j ACCEPT


should do the trick. Then again I use OpenBSD for this sort of thing...

-- 
Joe McDonagh
Operations Engineer
www.colonfail.com





More information about the ubuntu-server mailing list