[Bug 221137] FreeBSD 11+ does not send ICMP redirects

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 1 08:04:09 UTC 2017


            Bug ID: 221137
           Summary: FreeBSD 11+ does not send ICMP redirects
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: igorr at speechpro.com

Created attachment 184886
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=184886&action=edit
Very naive patch to support ICMP redirects.

On default gateway "internal" interface has IP
Also there is dedicated router for network. 
So part of routing table on default gateway looks like:     link#5             U           em0      UGS         em0

Router is accessible from our internal network (of course).

When we had FreeBSD 9.2 on and tried to access some host in network it would send ICMP redirect message with new route:

PING ( 56 data bytes
36 bytes from gw.stc ( Redirect Host(New addr:
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 4442   0 0000  3f  01 ab86 

I have upgraded FreeBSD version on our default gateway from 9.2 to 11.0. And
now it does not send ICMP redirects.

I assume that this is caused by removing net.inet.ip.fastforwarding sysctl:

Unfortunattely we need ICMP redirects, because not all equipment support
getting routes via DHCP options, also some of our workstations and servers have
static IP addresses and don't use DHCP.

I have created very naive patch against FreeBSD 11-STABLE (revision 321782).
And now ICMP redirects work. Patch is attached. It just checks if packet should
be routed to same interface it was received from and in this case just pass
control from ip_tryforward() to ip_input() by returning not NULL.

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

More information about the freebsd-bugs mailing list