![Embarassed :oops:](./../images/smilies/blush.gif)
Есть FreeBsd 7.2, mpd5.3, pf
Хочу сделать NAT спомошью pf.
есть 2 интерфеса rl0 ,rl1 вот ifconfig
Код: Выделить всё
rl0: flags=8843<UP, BROADCAST,RUNING,SIMPLEX,MULTICAST>metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:00:00:00:00:00
inet 192.168.0.11 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX<full-duplex>)
status: active
rl1: flags=8843<UP, BROADCAST,RUNING,SIMPLEX,MULTICAST>metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:00:00:00:00:00
inet 10.100.6.58 netmask 0xffffff00 broadcast 10.100.6.255
media: Ethernet autoselect (100baseTX<full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT, SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNING,MULTICAST>metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
ng0: flags=8890<UP,POINTOPOINT, RUNNING, NOARP, SIMPLEX, MULTICAST> metric 0 mtu 1460
inet 10.100.105.39 ---> 10.100.96.1 netmask 0xffffffff
Код: Выделить всё
net.inet.ip.forwarding: 1
Код: Выделить всё
Internet
Destination Gateway Flags Refs Use Netif Expire
default 10.100.96.1 UGS 0 2 ng0
10.0.0.0/8 10.100.6.1 UGS 0 23 rl1
10.100.6.0/24 link#2 UC 0 0 rl1
10.100.6.1 00:15:17:25:5f:92 UHLW 2 2 rl1
10.100.96.1 10.100.105.39 UH 1 0 ng0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.0.0/24 link#1 UC 0 0 rl0
Код: Выделить всё
ns0.orionet.ru (10.100.6.1) at 00:15:17:25:5f:92 on rl1 [ethernet]
Код: Выделить всё
if_1 = "rl0"
if_2 = "rl1"
lan = "192.168.0.0/24"
nat on ng0 inet from $lan to any -> (ng0)
в чем я ошибся
![Unknown :unknown:](./../images/smilies/unknw.gif)