From owner-freebsd-bugs@freebsd.org Tue Aug 1 08:04:09 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6527CDC294C for ; Tue, 1 Aug 2017 08:04:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4EB2B69761 for ; Tue, 1 Aug 2017 08:04:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v71849rb059068 for ; Tue, 1 Aug 2017 08:04:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221137] FreeBSD 11+ does not send ICMP redirects Date: Tue, 01 Aug 2017 08:04:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: igorr@speechpro.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2017 08:04:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221137 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@FreeBSD.org Reporter: igorr@speechpro.com Created attachment 184886 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D184886&action= =3Dedit Very naive patch to support ICMP redirects. On default gateway "internal" interface has IP 192.168.2.4/21 Also there is dedicated router for 192.168.8.0/23 network.=20 So part of routing table on default gateway looks like: 192.168.0.0/21 link#5 U em0 192.168.8.0/23 192.168.5.116 UGS em0 Router 192.168.5.116 is accessible from our internal network (of course). When we had FreeBSD 9.2 on 192.168.2.4 and tried to access some host in 192.168.8.0/23 network it would send ICMP redirect message with new route: PING 192.168.8.118 (192.168.8.118): 56 data bytes 36 bytes from gw.stc (192.168.2.4): Redirect Host(New addr: 192.168.5.116) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 4442 0 0000 3f 01 ab86 192.168.2.26 192.168.8.118=20 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: https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr290383 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 sh= ould 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. --=20 You are receiving this mail because: You are the assignee for the bug.=