On Wed, 2004-10-06 at 18:25, John Black wrote: > I'm trying to setup static NAT mappings. > > this is what i did, but it doesn't work: > public address 1.2.3.4/24 > ifconfig eth0:0 1.2.3.4 netmask 255.255.255.0 ip address add 1.2.3.4 dev eth0 > then in my firwall script: > iptables -t nat -A POSTROUTING -s 192.168.0.4 \ > -o eth0 -j SNAT --to 1.2.3.4 OK--looks good. > i tried this also: > iptables -t nat -A POSTROUTING -s 192.168.0.4/24 > -o eth0 -j SNAT --to 1.2.3.4 that's nonsense. .4 is not the network address, .0 is. > i have read the howto on the netfilter web site. > but i'm still lost. do you have filter rules in place that could be blocking the traffic? have you enabled IP forwarding (sysctl -w net.ipv4.ip_forward=1)? -j -- Jason Opperisano <opie@xxxxxxxxxxx>