From owner-freebsd-net@freebsd.org Tue Oct 22 14:30:35 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F29B715C1CC for ; Tue, 22 Oct 2019 14:30:35 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from mail.otcnet.ru (mail.otcnet.ru [194.190.78.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46yGBf6cT2z3LgC for ; Tue, 22 Oct 2019 14:30:34 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from MacBook-Gamov.local (unknown [188.164.215.2]) by mail.otcnet.ru (Postfix) with ESMTPSA id A758D6D2B5 for ; Tue, 22 Oct 2019 17:30:28 +0300 (MSK) To: freebsd-net@freebsd.org From: Victor Gamov Subject: icmp v4 redirect timeout Organization: OstankinoTelecom Message-ID: <1259e1c9-596f-c379-b58c-b44e76bf963e@otcnet.ru> Date: Tue, 22 Oct 2019 17:30:25 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46yGBf6cT2z3LgC X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of vit@otcnet.ru designates 194.190.78.3 as permitted sender) smtp.mailfrom=vit@otcnet.ru X-Spamd-Result: default: False [-5.52 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.otcnet.ru]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; DMARC_NA(0.00)[otcnet.ru]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-3.32)[ip: (-8.75), ipnet: 194.190.78.0/24(-4.38), asn: 50822(-3.50), country: RU(0.01)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:50822, ipnet:194.190.78.0/24, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2019 14:30:36 -0000 Hi All I discover the following problem: FreeBSD host install route recived by ICMP-redirect from default GW and this route is permanents. In my case FreeBSD 192.168.1.10/24 has 192.168.1.254 as default gateway. This network has interconnection with remote network 192.168.88.0/24 via some other gateways -- 192.168.1.199 + 192.168.1.195 for example. All gateways using OSPF to exchange routing info. 192.168.1.10 send packet destined to remote network (192.168.88.0/24) to default gateway 192.168.1.254, receive ICMP-redirect and install route to 192.168.88.0/24 via 192.168.1.199. Then 192.168.1.199 off for some reason but 192.168.1.10 never know about it because route installed via 192.168.1.199 is permanent. I see net.inet6.icmp6.redirtimeout in my FreeBSD 11.2-STABLE #0 r339734 and I think this sysctl set timeout for routes installed via ICMP-redirects (route deletes after this timeout?). Is it possible to get such sysctl for ipv4 ? Thanks! -- CU, Victor Gamov