作者xexxo2002 (xexxo2002)
看板Linux
标题Re: [问题] PPPoE Server的NAT设定
时间Fri May 16 22:02:36 2008
※ 引述《Richie1105 ( )》之铭言:
: ※ 引述《xexxo2002 (xexxo2002)》之铭言:
: : 1. iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -j MASQUERADE
: : ^^^^^^^^^^^
: : 内网网段
: : 2. 对内网路介面不需设 route,iptables 会自动把从 eth1 进来的封
: : 包做 masquerade 的动作
: : 3. eth1 也不用设 gateway
: 非常感谢您,我的PPPoE Server已可成功对外连线
: 後来我用相同的环境架设PPTP Server,也下了相同的iptables指令
: 结果在Client端ping的到DNS,却无法以输入"网址"的方法连到外面网页
: 请问发生的原因有哪些呢?
小弟没有玩 pptp,不过可以请你把你的 iptables rule 贴上来吗?
filter table 跟 nat table 的,用 iptables -nvL 跟 iptables -t nat -nvL
看到...
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.216.50