IP MASQ

Patrick slu at firerun.net
Mon Apr 23 11:52:00 GMT 2001


You will need to have iptales to do it.  Then you will want to add a
rule to the NAT table like "iptables -t nat -A POSTROUTING -s
xxx.xxx.xxx.xxx/xx -J MASQUERADE"  where the xxx are the appropriate IP
subnet.  Then you will need to add two rules to the FORWARD chain like
"iptables -A FORWARD -s xxx.xxx.xxx.xxx/xx -j ACCEPT" and another for
the -d that will allow traffic back and forth.  Hope that helps.


jreijling at corp.nl.home.com wrote:

>
>
> I'm wondering how i should setup my IP masquerading because I've
> upgraded my kernel from 2.2.19 to 2.4.3 and all went well except that
> I can't get my IP masquerading to work.
>
> I've got two NIC's inside my server (eth0 is for the internal network
> and eth1 for the internet), and my server has got access to the
> internet and to my other pc's. But the PC's only have access on my
> server and not on the Internet.
>
> Could someone give me a reaction?? Thnx!!!
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list