On Sunday 09 June 2002 9:18 pm, Richard A Downing wrote:

> ifconfig ppp0
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:213.104.157.9  P-t-P:62.255.122.225 
>
> root:/usr/lib/iptables$: iptables -t nat -F
> root:/usr/lib/iptables$: iptables -t nat -A POSTROUTING -o ppp0 -j
> MASQUERADE
> iptables: No chain/target/match by that name

Okay.   I still do not know why you cannot use the MASQUERADE target, but I 
do not use modules - I have everything compiled-in to the kernel, so I don't 
know what you need to look for to find out why that command isn't working.   
Hopefully someone else can help on that one ?

However, the ppp0 info you posted tells me that your local address is 
213.104.157.9, so this is the address you should be using in your SNAT rule 
as a workaround.

The 62.255.122.225 address is the other end of the link, which your machine 
is routing to, therefore you shouldn't be trying to masquerade your outgoing 
packets on this address.
 
 
 
Antony.

Reply via email to