Re: [help]PPPoE + NATD 就是跑不起來?

看板FreeBSD作者時間21年前 (2004/08/13 02:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/12 (看更多)
> ==> Seeyou@bbs.ee.ntu.edu.tw (我愛 TX) 的文章中提到: > 自已目前可以利用 ppp 讓 FreeBSD (gateway)上網成功 > 不過卻沒有辦法讓第二張網卡後面的電腦上網 > 不知道問題出在那裡,還請大家幫個忙 > kernel部份 > options NETGRAPH > options IPFIREWALL > options IPFIREWALL_DEFAULT_TO_ACCEPT > options IPDIVERT > /etc/rc.firewall部份 > /sbin/ipfw -f flush > /sbin/ipfw add divert natd all from any to any via tun0 > /sbin/ipfw add pass all from any to any > ppp.conf部份,vr1是接上ADSL modem > ### PPPoE > nat enable yes > set device PPPoE:vr1 > set mru 1492 > set authname xxx > set authkey xxx > set dial > set login > add default HISADDR > dial > /etc/defaults/rc.conf部份 > gateway_enable="Yes" 應該是 /sbin/ipfw add divert natd all from any to any via vr1 你改一下看看因為你對外網卡是 vr1 不是tun0 -- * Origin: 中山大學-美麗之島BBS * From: 61.56.140.139 [已通過認證]
文章代碼(AID): #116x2i00 (FreeBSD)
討論串 (同標題文章)
文章代碼(AID): #116x2i00 (FreeBSD)