如何共享长城宽带上网?

由 cycker 在 01-11-2004 13:55 发表:

如何共享长城宽带上网?

长城宽带是用DHCP自动分配IP的。

如果是用windows的话,共享网卡就可以了。

现在想在局域网内用静态IP,然后共享长城宽带上网。

我用那个iptable脚本好象没用。

echo 1 > /proc/sys/net/ipv4/ip_forward

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

请指教.


I just want to do everything on linux.


由 terminator 在 01-11-2004 14:48 发表:


set correct default gateway on the windows client (the internal IP address of the Linux NAT machine)

Internet --- (ext.IP) Linux NAT (int.IP) --- clients

to test, from the windows client:

ping client-self-ip -> should be ok

ping int.IP -> should be ok, otherwise, IP addresses are wrong or networ

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus