snat not working

my local ip is aaa.aaa.aaa.aaa
asterisk sitting on the internet at ip bbb.bbb.bbb.bbb
my firewall's internal ip is 192.168.0.254

i did snat:

iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to aaa.aaa.aaa

iptables -t nat -L -v  gives:

Chain POSTROUTING (policy ACCEPT 23663 packets, 2182K bytes)
 pkts bytes target     prot opt in     out     source
destination
33056 2084K SNAT       all  --  any    ppp0    anywhere
anywhere            to:aaa.aaa.aaa.aaa


but tcpdump both on ppp0 and on remote bbb.bbb.bbb.bbb gives:


10:35:27.564611 IP 192.168.0.254.5070 > bbb.bbb.bbb.bbb.5060: UDP, length 489

so snat is not working


any idea ?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Reply via email to