ipfw
Добавлено: 2007-01-17 20:09:54
поставил модем бриджем.. итак имею.
# ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 10.9.0.1 netmask 0xffffff00 broadcast 10.9.0.255
inet 10.9.0.2 netmask 0xffffff00 broadcast 10.9.0.255
ether 00:a0:d2:a4:2b:e7
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 1.1.1.1 netmask 0xff000000 broadcast 81.255.255.255
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
ether 00:30:84:27:9c:df
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
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
inet 1.1.1.1 --> 213.24.85.1 netmask 0xffffffff
Opened by PID 816
1.1.1.1 - внешний IP.
пишу ipfw add divert 8888 from any to any via tun0
инет работает у всей сети.
хочу дать на определённый ип, ipfw add divert 8888 from any to 10.9.0.10 via tun0
инета нету.
подскажите, как правильно настроить
# ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 10.9.0.1 netmask 0xffffff00 broadcast 10.9.0.255
inet 10.9.0.2 netmask 0xffffff00 broadcast 10.9.0.255
ether 00:a0:d2:a4:2b:e7
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 1.1.1.1 netmask 0xff000000 broadcast 81.255.255.255
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
ether 00:30:84:27:9c:df
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
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
inet 1.1.1.1 --> 213.24.85.1 netmask 0xffffffff
Opened by PID 816
1.1.1.1 - внешний IP.
пишу ipfw add divert 8888 from any to any via tun0
инет работает у всей сети.
хочу дать на определённый ип, ipfw add divert 8888 from any to 10.9.0.10 via tun0
инета нету.
подскажите, как правильно настроить