| 進階會員 | FreeBSD NAT 1.modify kernel 加入 options IPFIREWALL options IPDIVERT 重新編譯新的kernel save and config and make depend all install 2.modify /etc/rc.conf firewall_enable="YES" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="OPEN" # Firewall type (see /etc/rc.firewall) firewall_quiet="YES" # Set to YES to suppress rule display natd_program="/sbin/natd" # path to natd, if you want a different one. natd_enable="YES" # Enable natd (if firewall_enable == YES). natd_interface="vr0" #設成對外的那張網卡裝置 3.Modify /etc/services natd 8668/divert 4.Modify /etc/rc.firewall /sbin/ipfw add 60000 divert 8668 all from any to any via vr0 詳細的用法可以man ipfw ps : rc.conf 或是rc.firewall 都是script file.. 詳細的用法可以man rc 5.reboot 6.將client的gateway設向nat主機的內部ip...就可以了 WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!! This program can put your computer in rather unusable state. When using it for the first time, work on the console of the computer, and do NOT do anything you don't understand. |
| 回覆 |
| |
類似的主題 | ||||
| 主題 | 主題作者 | 討論版 | 回覆 | 最後發表 |
| 請問mail的容量限制在哪改? [freeBSD] | vicky2395 | -- FreeBSD & Linux 討 論 版 | 0 | 2002-09-13 01:03 PM |
| FreeBSD???? | danc | -- FreeBSD & Linux 討 論 版 | 1 | 2002-05-24 01:12 AM |
| FreeBSD 4.5終於Release 了... | sendxp | -- FreeBSD & Linux 討 論 版 | 1 | 2002-01-31 03:19 PM |
| FreeBSD 中文的技術網站彙整 | iget | -- 優 質 網 站 分 享 | 5 | 2001-12-09 12:33 AM |
| FreeBSD 的 NAT? | 抓狂 | -- 網 路 技 術 版 | 2 | 2001-07-18 11:55 PM |
| XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。