看板 FreeBSD 關於我們 聯絡資訊
※ 引述《Seeyou@bbs.ee.ntu.edu.tw (我愛 TX)》之銘言: : ※ 引述《bluce-huang.bbs@bbs.nsysu.edu.tw (夏夜微風 )》之銘言: : : /sbin/ipfw add divert natd all from any to any via vr1 : : 你改一下看看因為你對外網卡是 vr1 不是tun0 : 先感謝您的回應,我明天白天會再測試一下 : 只是感覺"對外的 device" 應該是 tun0,應該不是 vr1... 是 tun0 沒錯, 跑 vr1 反而會出不去. 只是您得跑 natd . /etc/rc.conf: natd_enable="YES" natd_flags="-f /etc/natd.conf" /etc/natd.conf: dynamic yes interface tun0 use_sockets yes 加好以後先自己手動跑, 下次開機會自動起來. # /sbin/natd -f /etc/natd.conf -- Linux is for people who want to know why it works. Mac is for people who don't want to know why it works. DOS is for people who want to know why it does not work. Windows is for people who don't want to know why it does not work. -- ※Origin:星 情 小 築 < Star.leobbs.net > ※From: 210-66-93-96.adsl.dynamic.seed.net.tw