natd 下的 redirect_port 問題

看板FreeBSD作者時間21年前 (2004/12/15 19:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/7 (看更多)
我的bsd怎麼樣都設不起來redirect_port的功能 有網友可以給點建議嗎? FreeBSD 4.9R vr1是對外網卡,從外面測試怎樣都連不到內部的web server 以下是我的設定檔。 rc.conf: gateway_enable="YES" firewall_enable="YES" firewall_type="OPEN" natd_enable="YES" natd_interface="vr1" natd_flags="-config /etc/natd.conf" kernel: options IPFIREWALL options IPDIVERT options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_VERBOSE options IPFIREWALL_FORWARD options DUMMYNET natd.conf: redirect_port tcp 192.168.1.246:80 80 rc.local: /sbin/ipfw add 1100 allow tcp from any to 192.168.1.246 80 /sbin/ipfw add 1200 allow tcp from 192.168.1.246 to any ipfw show的結果: 00050 2208 184686 divert 8668 ip from any to any via vr1 00100 0 0 allow ip from any to any via lo0 00200 0 0 deny ip from any to 127.0.0.0/8 00300 0 0 deny ip from 127.0.0.0/8 to any 01100 18 864 allow tcp from any to 192.168.1.246 80 01200 0 0 allow tcp from 192.168.1.246 to any 65000 4363 477916 allow ip from any to any 65535 0 0 allow ip from any to any -- ◤ 啊~啊~啊 ‧‧‧‧‧‧‧‧‧‧‧‧‧‧‧‧ ※ 來源:‧靜宜大學計算機中心bbs站 bbs.pu.edu.tw‧[FROM: www.karomax.com.tw]
文章代碼(AID): #11m22r00 (FreeBSD)
文章代碼(AID): #11m22r00 (FreeBSD)