Есть такое правило
Код: Выделить всё
08300 divert 8668 ip from 10.4.0.0/16 to table(13) out via xl2
Код: Выделить всё
xl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
ether 00:15:e9:af:f6:ea
inet 80.249.231.163 netmask 0xfffffff8 broadcast 80.249.231.167
inet 80.249.231.165 netmask 0xfffffff8 broadcast 80.249.231.167
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Код: Выделить всё
inet 80.249.231.165 netmask 0xfffffff8 broadcast 80.249.231.167
Код: Выделить всё
cat natd.conf
interface xl2
same_ports
unregistered_only
redirect_port tcp 192.168.20.251:80 81