【求助】使用iptables共享上网的问题

由 cholin 在 06-27-2003 09:54 发表:

【求助】使用iptables共享上网的问题

为网吧做的服务器,就2句话,已经可以上网了

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

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

eth0是外网,但

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