Recent Changes - Search:

Softwares

.

IPMasqueradingToAllowMachinesWithPrivateToAccessTheInternet

Main.IPMasqueradingToAllowMachinesWithPrivateToAccessTheInternet History

Show minor edits - Show changes to output

April 14, 2007, at 06:58 AM by 61.17.224.18 -
Added lines 19-31:
http://www.ietf.org/rfc/rfc1918.txt

*Masqueraded traffic needs to be allowed through the FORWARD chain for the above rule to work:

iptables -A FORWARD -s 192.168.0.0/24 -o eth0 -j ACCEPT
iptables -A FORWARD -d 192.168.0.0/24 -m state --state ESTABLISHED,RELATED -i eth0 -j ACCEPT

*The above commands will allow all connections from your local network to the Internet.



April 14, 2007, at 06:56 AM by 61.17.224.18 -
Changed lines 3-18 from:
IP Masquerading is to allow machines with private to access the Internet through the machine doing the masquerading.
to:
IP Masquerading is to allow machines with private to access the Internet through the machine doing the masquerading.

*Accomplished with a single iptables rule.

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE


Address: 192.168.0.1 11000000.10101000.00000000 .00000001
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111 .00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000 .11111111

Network: 192.168.0.0/24 11000000.10101000.00000000 .00000000 (Class C)
Broadcast: 192.168.0.255 11000000.10101000.00000000 .11111111
HostMin: 192.168.0.1 11000000.10101000.00000000 .00000001
HostMax: 192.168.0.254 11000000.10101000.00000000 .11111110
April 14, 2007, at 06:54 AM by 61.17.224.18 -
Added lines 1-3:
%red%IP Masquerading Internet Connection Sharing

IP Masquerading is to allow machines with private to access the Internet through the machine doing the masquerading.
Edit - History - Print - Recent Changes - Search
Page last modified on April 14, 2007, at 06:58 AM