wsgtrsys
2005-04-12, 08:05 AM
本篇文章轉自: http://www.routerclub.com/ipb/index.php?showtopic=1864&hl=freebsd+component
用m0n0做軟件路由
鑒於論壇上網友們對coyote這個軟件提出的問題較多,也難以一一作答,所以現在向大家介紹一款更方便、更好用的軟件路由:m0n0
m0n0是基於freebsd而開發的軟件路由器。由於freebsd有著比linux更高的穩定性、可靠性,所以用m0n0來做軟件路由絕對是最好的選擇。而且安裝配置比coyote更簡單,功能更強大。
軟件模塊:
1、all the required FreeBSD components (kernel, user programs)
2、ipfilter
3、PHP (CGI version)
4、mini_httpd
5、MPD
6、ISC DHCP server
7、ez-ipupdate (for DynDNS updates)
8、Dnsmasq (for the caching DNS forwarder)
9、racoon (for IPsec IKE)
10、UCD-SNMP
11、choparp
12、BPALogin
主要功能:
1、web interface (supports SSL)
2、serial console interface for recovery
3、set LAN IP address
reset password
restore factory defaults
reboot system
4、wireless support (access point with PRISM-II/2.5/3 cards, BSS/IBSS with other cards including Cisco)
5captive portal
6、802.1Q VLAN support
7、stateful packet filtering
8、block/pass rules
9、logging
10、NAT/PAT (including 1:1)
11、DHCP client, PPPoE, PPTP and Telstra BigPond Cable support on the WAN interface
12、IPsec VPN tunnels (IKE; with support for hardware crypto cards and mobile clients)
13、PPTP VPN (with RADIUS server support)
14、static routes
15、DHCP server
16、caching DNS forwarder
17、DynDNS client
18、SNMP agent
19、traffic shaper
20、SVG-based traffic grapher
21、firmware upgrade through the web browser
22、Wake on LAN client
23、configuration backup/restore
24、host/network aliases
目前在m0n0的網站上提供有穩定版本是1.1,此版本基於freebsd4.10,修正以前的很多bug.
在下載頁面中,又提供了好幾種類型:cf卡啟動、從標準的電腦硬盤啟動、從光盤啟動用軟盤來保存配置文件等等。並提供了下載文件。
地址為:
http://www.m0n0.ch/wall/downloads.php
我要談的就是從硬盤運行的方法。
安裝到硬盤上的步驟為:
Installation on a standard PC (CF/IDE version)
Installation on a standard PC requires the following steps:
一、download the raw CF/IDE image (generic-pc)
write the image to a CF card (> 5 MB) or an IDE hard disk, either with dd under FreeBSD or under Windows with my tool, physdiskwrite 0.4 (下載m0n0的硬盤啟動映像文件,地址為:
http://m0n0wall.cac.net/download/m0n0wall/generic-pc-1.1.img
同時下載映像文件寫入工具physdiskwrite,地址為:
http://www.m0n0.ch/wall/downloads/physdiskwrite-0.5.zip
二、Windows:
(use the -u flag if the target disk is > 800 MB - make very sure you've selected the right disk!!)
physdiskwrite [-u] generic-pc-xxx.img
(you must use v0.3 or later!) (將要做路由器的硬盤接到現有的windows系統電腦中,將映像文件寫入硬盤)
三、put the CF card/HD into the target PC (把硬盤安裝到目標機器中)
四、plug the PC into the network (LAN/WAN/...) (接好網絡設備)
五、power it up
六、assign functions (LAN/WAN/OPT) to your interfaces (hint: use auto-detection, or let the MAC addresses tell you which card is which one)
指定你的網卡,哪一塊為內網卡,哪一張為外網卡。可以點擊,自動檢測或者讓mac地址告訴你哪一張分別是內外網卡。
change the LAN IP address, or use the default (192.168.1.1; m0n0wall acts as a DHCP server by default)
access the webGUI (user: 'admin', default password: 'mono')
make the necessary changes to the default configuration
簡而言之,就是將下載到的映像文件寫到一個6M以上的硬盤上以後,就可以通過http://192.168.1.1進行各項功能設定、管理了。
說明文檔:
http://www.m0n0.ch/wall/docbook/
http://www.m0n0.ch/wall/screens/system.png
http://www.m0n0.ch/wall/screens/system_routes.png
用m0n0做軟件路由
鑒於論壇上網友們對coyote這個軟件提出的問題較多,也難以一一作答,所以現在向大家介紹一款更方便、更好用的軟件路由:m0n0
m0n0是基於freebsd而開發的軟件路由器。由於freebsd有著比linux更高的穩定性、可靠性,所以用m0n0來做軟件路由絕對是最好的選擇。而且安裝配置比coyote更簡單,功能更強大。
軟件模塊:
1、all the required FreeBSD components (kernel, user programs)
2、ipfilter
3、PHP (CGI version)
4、mini_httpd
5、MPD
6、ISC DHCP server
7、ez-ipupdate (for DynDNS updates)
8、Dnsmasq (for the caching DNS forwarder)
9、racoon (for IPsec IKE)
10、UCD-SNMP
11、choparp
12、BPALogin
主要功能:
1、web interface (supports SSL)
2、serial console interface for recovery
3、set LAN IP address
reset password
restore factory defaults
reboot system
4、wireless support (access point with PRISM-II/2.5/3 cards, BSS/IBSS with other cards including Cisco)
5captive portal
6、802.1Q VLAN support
7、stateful packet filtering
8、block/pass rules
9、logging
10、NAT/PAT (including 1:1)
11、DHCP client, PPPoE, PPTP and Telstra BigPond Cable support on the WAN interface
12、IPsec VPN tunnels (IKE; with support for hardware crypto cards and mobile clients)
13、PPTP VPN (with RADIUS server support)
14、static routes
15、DHCP server
16、caching DNS forwarder
17、DynDNS client
18、SNMP agent
19、traffic shaper
20、SVG-based traffic grapher
21、firmware upgrade through the web browser
22、Wake on LAN client
23、configuration backup/restore
24、host/network aliases
目前在m0n0的網站上提供有穩定版本是1.1,此版本基於freebsd4.10,修正以前的很多bug.
在下載頁面中,又提供了好幾種類型:cf卡啟動、從標準的電腦硬盤啟動、從光盤啟動用軟盤來保存配置文件等等。並提供了下載文件。
地址為:
http://www.m0n0.ch/wall/downloads.php
我要談的就是從硬盤運行的方法。
安裝到硬盤上的步驟為:
Installation on a standard PC (CF/IDE version)
Installation on a standard PC requires the following steps:
一、download the raw CF/IDE image (generic-pc)
write the image to a CF card (> 5 MB) or an IDE hard disk, either with dd under FreeBSD or under Windows with my tool, physdiskwrite 0.4 (下載m0n0的硬盤啟動映像文件,地址為:
http://m0n0wall.cac.net/download/m0n0wall/generic-pc-1.1.img
同時下載映像文件寫入工具physdiskwrite,地址為:
http://www.m0n0.ch/wall/downloads/physdiskwrite-0.5.zip
二、Windows:
(use the -u flag if the target disk is > 800 MB - make very sure you've selected the right disk!!)
physdiskwrite [-u] generic-pc-xxx.img
(you must use v0.3 or later!) (將要做路由器的硬盤接到現有的windows系統電腦中,將映像文件寫入硬盤)
三、put the CF card/HD into the target PC (把硬盤安裝到目標機器中)
四、plug the PC into the network (LAN/WAN/...) (接好網絡設備)
五、power it up
六、assign functions (LAN/WAN/OPT) to your interfaces (hint: use auto-detection, or let the MAC addresses tell you which card is which one)
指定你的網卡,哪一塊為內網卡,哪一張為外網卡。可以點擊,自動檢測或者讓mac地址告訴你哪一張分別是內外網卡。
change the LAN IP address, or use the default (192.168.1.1; m0n0wall acts as a DHCP server by default)
access the webGUI (user: 'admin', default password: 'mono')
make the necessary changes to the default configuration
簡而言之,就是將下載到的映像文件寫到一個6M以上的硬盤上以後,就可以通過http://192.168.1.1進行各項功能設定、管理了。
說明文檔:
http://www.m0n0.ch/wall/docbook/
http://www.m0n0.ch/wall/screens/system.png
http://www.m0n0.ch/wall/screens/system_routes.png