- 论坛徽章:
- 0
|
rc.conf文件
- # -- sysinstall generated deltas -- # Fri Dec 24 21:01:37 2004
- # Created: Fri Dec 24 21:01:37 2004
- # Enable network daemons for user convenience.
- # Please make all changes to this file, not to /etc/defaults/rc.conf.
- # This file now contains just the overrides from /etc/defaults/rc.conf.
- ifconfig_xl1="inet 222.82.248.134 netmask 255.255.255.252"
- ifconfig_xl0="inet 192.168.0.253 netmask 255.255.255.0"
- defaultrouter="192.168.0.1"
- hostname="uaspx.com"
- inetd_enable="YES"
- kern_securelevel_enable="NO"
- linux_enable="YES"
- nfs_reserved_port_only="YES"
- sendmail_enable="NONE"
- sshd_enable="YES"
- usbd_enable="YES"
- gateway_enable="YES"
- ipnat_enable="YES"
- ipfilter_enable="YES"
- ipfilter_program="/sbin/ipf"
- ipfilter_rules="/etc/ipf.rules"
- # This file now contains just the overrides from /etc/defaults/rc.conf.
- # Please make all changes to this file, not to /etc/defaults/rc.conf.
- # Enable network daemons for user convenience.
- # Created: Sat Dec 25 15:17:19 2004
- # -- sysinstall generated deltas -- # Sat Dec 25 15:17:19 2004
- saver="logo"
复制代码
ipnat.conf文件
- map xl1 192.168.0.0/24 ->; 222.82.248.134/32 proxy port ftp ftp/tcp
- map xl1 192.168.0.0/24 ->; 222.82.248.134/32 portmap tcp/udp auto
- map xl1 192.168.0.0/24 ->; 222.82.248.134/32
- map xl1 192.168.1.0/24 ->; 222.82.248.134/32 proxy port ftp ftp/tcp
- map xl1 192.168.1.0/24 ->; 222.82.248.134/32 portmap tcp/udp auto
- map xl1 192.168.1.0/24 ->; 222.82.248.134/32
- rdr xl1 222.82.248.134/32 port 4000 ->; 192.168.0.2 port 4000
复制代码 |
|