Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2021 17:29:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        ipfw@FreeBSD.org
Subject:   [Bug 245277] ipfw fwd tablearg does not honour host routes
Message-ID:  <bug-245277-8303-BG4nB7FxfK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-245277-8303@https.bugs.freebsd.org/bugzilla/>
References:  <bug-245277-8303@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245277

--- Comment #1 from bugs.freebsd.org@mx.zzux.com ---
This bug appears on 12.2 also.
Maybe example above is too complicated, below one is simpler.

route -4 add default your_gw
route -4 add -host 169.254.1.1 127.0.0.1
route -4 add -net 169.254.1.2/32 127.0.0.1
ipfw table 8 create type addr valtype ipv4
ipfw table 8 add 8.8.8.8 169.254.1.1
ipfw table 8 add 8.8.4.4 169.254.1.2
ipfw add 8 fwd tablearg ip from any to 'table(8)'


> ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=3D0 ttl=3D106 time=3D17.320 ms

> ping 8.8.4.4
PING 8.8.4.4 (8.8.4.4): 56 data bytes
92 bytes from 127.0.0.1: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 424a   0 0000  01  01 0000 192.168.111.111  8.8.4.4

Routing must be same for both destinations, why different?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245277-8303-BG4nB7FxfK>