[Bug 212170] ipfw fwd does not works if defaultgateway is not assigned
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Aug 26 06:32:40 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212170
Bug ID: 212170
Summary: ipfw fwd does not works if defaultgateway is not
assigned
Product: Base System
Version: 11.0-RC1
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: yura_doorsfan at mail.ru
Google did not help me.
Easy to repeat:
2 gateways:
1. rl0=1.2.3.2/30, gateway 1.2.3.1
2. rl1 PPPoE (/usr/sbin/ppp) tun0 5.6.7.8 --> 9.10.11.12 netmask 0xffffffff
2 rules:
fwd 9.10.11.12 ip from 5.6.7.8 to not 192.168.0.0/16 out
fwd 1.2.3.1 ip from 1.2.3.2 to not 192.168.0.0/16 out
script:
gwvo=$(/sbin/ifconfig | grep "inet 5.6.7.8" | awk '{print $4}')
usualy give me '9.10.11.12'
if PPPoE provider had been in down before router booted, then
$(gwvo) took on empty value
and
/sbin/route change default ${gwvo}
result default route is absent
and
ping -S 1.2.3.2 8.8.8.8
answer me "no route to host"
and
fwd 1.2.3.1 ip from 1.2.3.2 to not 192.168.0.0/16 out
stop forward (and count) packets
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list