root # ifconfig
Код: Выделить всё
rl0: flags = 8843 <UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options = 8 <VLAN_MTU>
inet 10.10.10.30 netmask 0xffffffc0 broadcast 10.10.10.191
ether 00:00:20:00:0 a: 72
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl1: flags = 8843 <UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options = 8 <VLAN_MTU>
inet 0.0.0.0 netmask 0xff000000 broadcast 0.255.255.255
ether 00:80:48:51:57: ef
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags = 108810 <POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags = 8049 <UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80:: 1% lo0 prefixlen 64 scopeid 0x4
inet6:: 1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
pflog0: flags = 141 <UP,RUNNING,PROMISC> mtu 33208
tun0: flags = 8151 <UP,POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 192.168.180.1 -> 192.168.180.1 netmask 0xffffff00
Opened by PID 1632
ng0: flags = 88d1 <UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1456
inet 180.180.180.180 -> 180.180.180.191 netmask 0xffffffff
Код: Выделить всё
net 192.168.180.0/24
dynip 192.168.180.0/24
dns1 10.10.10.10
dns2 10.10.10.20
domain xxx.net
radiuslisten 127.0.0.1
radiusserver1 127.0.0.1
radiusserver2 127.0.0.1
radiusauthport 1812
radiusacctport 1813
radiusnasid NAS.wifi
dhcpif rl1
uamserver https: / / 192.168.180.1/wifi/hotspotlogin.php
uamhomepage http://xxx.net
uamsecret 11111111111111111
uamport 3990
uamallowed 192.168.180.1, http://xxx.net
coaport 3799
coanoipcheck
Код: Выделить всё
nat on ng0 from (192.168.180.1/24) to any -> ng0
nat on rl0 from (192.168.180.1/24) to any -> rl0