ipfw setfib+nat drop localy borned packets

From: Андрей Смагин <samspeed_at_mail.ru>
Date: Fri, 11 Dec 2009 15:45:31 +0300
ipfw drop packets borned on local PC, but from another all work fine

bridge0 172.17.1.200/16
tap1 192.168.6.2/24

ipfw nat 2 config ip 192.168.6.2 same_ports
route add default 172.17.1.200
setfib -F 2 route add default 192.168.6.1

ipfw add 10000 skipto 50206 ip from 172.17.0.0/16 to not 172.17.0.0/16
ipfw add 50205 nat 2 ip from any to 192.168.6.2
ipfw add 50206 setfib 2 ip from any to any
ipfw add 50207 nat 2 log ip from any to any


----------------------
from local machine:
PING internet (xxx.xxx.xxx.xx): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down

tail /var/log/messages
 kernel: ipfw: 50207 Nat ICMP:8.0 172.17.1.200 internet  out via bridge0 
-----------------------

from another host in 172.17.0.0/16 network all packets routed rightly
Received on Fri Dec 11 2009 - 12:02:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:59 UTC