设置Linux路由器时出现问题


0

我曾尝试将Linux(Ubuntu)作为路由器,但它失败了。我的目标是创建一个Linux路由器,然后分享两个宽带连接。那怎么办呢?

Answers:



0

最简短的答案:寻找教程。

简短的回答:

echo -n "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

这个问题可能在隔壁的http://www.serverfault.com/上更好。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.