iptables -t nat -A POSTROUTING -j MASQUERADE
will masquerade anything to anywhere.
you have to specify the nat table '-t nat' and MASQ is now MASQUERADE.
read http://netfilter.samba.org/unreliable-guides/NAT-HOWTO/index.html
for more info
cheers,
-Thom
* Phillipus Gunawan ([EMAIL PROTECTED]) wrote on Sat Mar 31, 2001 at 12:12:34 
+1000:
> Greetings. My name is Phillipus, I'm an university student in Sydney. I read a 
>documentation in minHowTo on Redhat website about sharing Internet.
> 
> I just upgrade my kernel to 2.4.2 and realized that the kernel has change the 
>iphains into iptables.
> 
> I tried to replace everything with 'ipchains' to 'iptables' according to the 
>documentations in website, and test it with: 'iptables -L -n' in the terminal. But 
>the result is, nothing happen... Isn't should give me list all the share 'port' to 
>the right address (e.g. 192.168.1. )
> 
> I'm using ordinary dial-up internet (ISP) and one NIC (eth0)
> 
> Can you tell me which part should I replace to make the Masquerading works fine with 
>iptables? and is it possible to test the internet sharing from the Linux box it self?
> 
> I hope that you could help me to improve my knowledge in the Linux Box Worlds... :)
> 
> Best Regards,
> 
> 
> Phillipus.

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

Reply via email to