作者Richie1105 ( )
看板Linux
标题Re: [问题] PPPoE Server的NAT设定
时间Mon May 19 19:45:57 2008
※ 引述《xexxo2002 (xexxo2002)》之铭言:
: ※ 引述《Richie1105 ( )》之铭言:
: : 非常感谢您,我的PPPoE Server已可成功对外连线
: : 後来我用相同的环境架设PPTP Server,也下了相同的iptables指令
: : 结果在Client端ping的到DNS,却无法以输入"网址"的方法连到外面网页
: : 请问发生的原因有哪些呢?
: 小弟没有玩 pptp,不过可以请你把你的 iptables rule 贴上来吗?
: filter table 跟 nat table 的,用 iptables -nvL 跟 iptables -t nat -nvL
: 看到...
您好,我是我的iptables rule,我在架设server前有先清空rule
# iptables -nvL
Chain INPUT (policy ACCEPT 20956 packets, 23M bytes) pkts bytes target
prot opt in out source destination
Chain FORWARD (policy ACCEPT 22 packets, 1348 bytes) pkts bytes target
prot opt in out source destination
Chain OUTPUT (policy ACCEPT 11617 packets, 877K bytes) pkts bytes target
prot opt in out source destination
# iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 1201 packets, 214K bytes) pkts bytes target
prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 354 packets, 23511 bytes)pkts bytes target
prot opt in out source destination
0 0 MASQUERADE all -- * * 10.0.0.0/24 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 348 packets, 23183 bytes) pkts bytes target
prot opt in out source destination
还请多指教~~^^
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.117.185.142