步骤三:开始运行cmd回车,cd c:\m0n0进入m0n0目录中运行physdiskwrite -u generic-pc-1.11.img (只有当硬盘容易大于800MB时才需要-u)。系统显示你电脑中的两个硬盘的一些信息,并提示Which disk do you want to write?(0..1),我们这里选择1(图5)。屏幕显示“6291456/6291456 bytes written in total”则表示m0n0wall系统已经安装到硬盘中了。
提示:不要选错,否则硬盘数据将全部被清除。
file:///E:/学习/computer/服务器/软路由/m0n0wall/关于m0n0wall的安装及配置/关于m0n0wall的安装及配置_files/200509132251143_5.jpg
下面对菜单进行简单介绍。
1)Interfaces:assign network ports(网卡:指定网络端口),指定安装的网卡,用那一块连接WAN,那一块连接LAN。
2)Set UP LAN IP Address(设定LAN网卡的IP地址)。
3)Reset WebGui Password(重设Webgui密码为Mono);
4)Reset to factory defaults(恢复成出厂设置);
5)Reboot system(重新启动)。
在这里我们输入1并回车。系统提示是否设置对VLAN(虚拟局域网)的支持,回答N(图8),系统接着提示:“Enter the LAN interface name or 'a' for auto-detection:”(输入LAN网卡名称或输入a自动检测),在这里输入”fxp0”,回车后系统再提示“Enter the WAN interface name or 'a' for auto-detection:”fxp1”,回车后系统再提示“Enter the Option 1 interface name or 'a' for auto-detection(or nothing if finished):,按回车键。
提示The firewall will reboot after saving the changes.Do you want to proceed?(y/n)输入y,系统将重新启动。
步骤二:配置Web端口映射。其中Interface设置为WAN,Protocol设置为tcp,External port range设置为http, NAT IP设置为192.168.1.2,Local port设置为http,Description(描述信息)设置为web Server,最后Auto-add a firewall rule to permit traffic through this NAT rule一定要选定,否则必须手动在Firewall中rules 加规则,所有设置如图15所示,点击save键。
步骤三:配置FTP端口映射。其中Interface设置为WAN,Protocol设置为tcp,External port range设置为FTP, NAT IP设置为192.168.1.2,Local port设置为FTP,Description(描述信息)设置为FTP Server,最后Auto-add a firewall rule to permit traffic through this NAT rule一定要选定,否则必须手动在Firewall中rules 加规则,点击save键,再点击“apply Changes”(修改确认),系统提示应用生效,通过查看Firewallrules,发现系统已经有二条新加入的规则(图16)。在外网输入www.router.net.cn就可以访问发布的web服务器了。