|
Blue Forest http://www.lslnet.com at 3:18 p.m. on August 18, 2006
Linux online with xp problems I would like to bring another xp system Linux line (ADSL no Locate ZP). Lane added in /etc/rc.d/rc.local
Iptables-F
Iptables-F-t Senat
Iptables-t Senat -o ppp0-A POSTROUTING-s 192.168.0.0/16 -j MASQUERADE
Echo "1" and ";/proc/sys/net/ipv4/ip_forward
Linux has two network interface card, one for the LAN is ip 192.168.0.1. One is the customer. Xp system is 192.168.0.2 IP gateway is 192.168.0.1 also add a DNS.
Another computer network can be as successful Why?
Also : iptables-t Senat -o ppp0-A POSTROUTING-s 192.168.0.0/16 -j MASQUERADE
-j What it meant. ? 16 192.168.0.0/16 what is the meaning here? 24 can be written. |
Linux online with xp problems Senat reads : iptables-t-A POSTROUTING-s 192.168.0.0/24 -o eth0 -j MASQUERADE
If your subnet mask is 192.168.0.0/255.255.255.0 wrote 192.168.0.0/24, if 192.168.0.0/255.255.0.0 wrote 192.168.0.0/16 : shock : |
| |