Код: Выделить всё
FreeBSD zlon.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed Jul 15 16:22:48 MSD 2009 west@zlon:/usr/obj/usr/src/sys/WESTGATE3 amd64
ifconfig в тюрьме
Код: Выделить всё
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:82:6b:91
inet 192.168.1.185 netmask 0xffffffff broadcast 192.168.1.185
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Код: Выделить всё
ifconfig_em1="inet 192.168.1.248 netmask 255.255.255.0"
ifconfig_em1_alias0="inet 192.168.1.185 netmask 255.255.255.255"
#jails
jail_enable="YES"
jail_list="web"
jail_web_rootdir="/var/jails/web"
jail_web_hostname="web.host"
jail_web_ip="192.168.1.185"
jail_web_interface="em1"
jail_web_devfs_enable="YES"
jail_web_exec_start="/bin/sh /etc/rc"
jail_web_exec_stop="/bin/sh /etc/rc.shutdown"
Код: Выделить всё
00010 allow ip from any to any via em1
00020 allow ip from any to any via em0
00030 allow ip from any to any via lo0
00040 nat 123 ip from 192.168.1.0/24 to any out via igb0
00050 nat 123 log logamount 100 ip from any to any in via igb0
00100 allow ip from any to any
65535 allow ip from any to any