精華區beta FreeBSD 關於我們 聯絡資訊
※ 引述《[email protected] (二十歲的凱晏)》之銘言: : ※ 引述《[email protected] (加鹽沙士真好喝)》之銘言: : > 是ㄛ, 請問您的 natd.conf 和 rc.firewall 內容為何呢? : 就是 : redirect_address 10.0.0.3 xxx.xxx.xxx.xxx : redirect_port tcp 10.0.0.1:53 53 : redirect_port udp 10.0.0.1:53 53 : 已經將tcp和udp都轉給server 10.0.0.1了...還是不行 : 我沒有檔封包...所以rc.firewall : 我只要把上面第一行註解掉就ok.... 你這樣的設定...真的怪怪的.... 記得您10.0.0.3這台是Windows系統, 要作ftpd; 而10.0.0.1 和xxx.xxx.xxx.xxx應該是同一台機器上的private / ture ip吧? 您natd.conf已經把所有的實體ip封包都轉到windows那台了! 而, 您對您rc.firewall的說明我看不太懂... 不過給您個建議, 若是我對您的需求上的認知沒錯的話, ...只要在windows上的 ftpd 程式把passive port的range指定好 如 60000~65500 然後natd.conf 改成: redirect_address 10.0.0.3 60000-65500 xxx.xxx.xxx.xxx 60000-65500 這樣就好了... rc.firewall改成: ## The followings are made by worren /sbin/ipfw -f flush /sbin/ipfw add 2000 pass all from 127.0.0.1 to 127.0.0.1 #natd /sbin/ipfw add divert natd all from any to any via xl0 (ps:xl0 是指 xxx.xxx.xxx.xxx的網路介面) 這樣就好.... : > no!....bind 就是跑udp.....port 53... : 是ㄛ......看來用google查出來的不一定準..... google只不過是把網友們post的文章作一個搜尋.... (sure, 還有其它的內容...ex: web...等) 搞不好幾個禮拜之後您我的這幾篇post都可以透過 key word在google上找到 btw, good luck! -- 逢甲大學 七月七日晴 BBS 站長 Worren 豪欽 歡迎參觀 77bbs.com http://worren.net [email protected] [email protected] [email protected] -- Origin:《 成大計中 BBS 站 》[bbs.ncku.edu.tw] 來源:[163.24.124.88]