PPPoE Server的NAT設定 - Linux

By Frederic
at 2008-05-16T22:02
at 2008-05-16T22:02
Table of Contents
※ 引述《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
看到...
--
: ※ 引述《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
看到...
--
Tags:
Linux
All Comments
Related Posts
PPPoE Server的NAT設定

By Wallis
at 2008-05-16T20:54
at 2008-05-16T20:54
scim中的新酷音不能用鍵盤page up/pagedown

By Faithe
at 2008-05-16T18:44
at 2008-05-16T18:44
Ubuntu無線網路的怪問題

By Joe
at 2008-05-16T15:25
at 2008-05-16T15:25
kernel-headers

By Hazel
at 2008-05-16T14:02
at 2008-05-16T14:02
emesene

By Zanna
at 2008-05-16T13:19
at 2008-05-16T13:19