Re: Masquerading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Monday 25 November 2002 06:43 am, Antonio Montagnani wrote:
>> I have a small Homelan.
>>
>> I installed Redhat 8.0 yesterday and everything is o.k. (including
>> MP3, TTfonts, Acrobat etc.)
>>
>> I need a small help for Masquerading with Iptables my Homelan to surf
>> the Web (as I did with RH7.3 by Rppoe...with IPCHAINS)
>>
>> If my homelan is 192.168.x.x (and my router/firewall is 192.168.0.1)
>> what kind of line shall I add to my /etc/sysconfig/iptables file
>> written by lokkit???
>>
>> Any other operation???

Ok here is the answer to your question but I still suggest reading
your IP-Tables how to (There are not many good ones but a good cover of
IPTables came out in Linux Journal a couple of months ago so go and dig
for it)

-A POSTROUTING -s 192.168.0.0/255.255.0.0 -j SNAT --to-source XXX.XXX.XXX.XXX

where XXX.XXX.XXX.XXX = your external IP Address

note that the above should probably be entered by commandline as such

iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.0.0 -j SNAT
--to-source XXX.XXX.XXX.XXX

then use iptables-save > /etc/sysconfig/iptables

this is because there is a bunch of other syntax that is needed in the
iptables file that I don't feel like typing in a E-Mail.






-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux