看板 FreeBSD 關於我們 聯絡資訊
> ==> 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 [已通過認證]