On 04 Jan 2001 13:34:00 +1100, Michael wrote:
> my eth0 is 203.41.122.129
> 
> I was hoping to have eth0:0 203.41.122.130
> 
> And somehow tell the 192.168.1.x network to nat via .130 and not the .129, I
> been wading through iproute looking for a answer... but I am stuck :(

Off the top of my head,

iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d ! 192.168.1.0/24 -j
SNAT --to-source 203.41.122.130

You're running a recent kernel, right?

m.


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

Reply via email to