icmp v4 redirect timeout

Victor Gamov vit at otcnet.ru
Thu Oct 31 19:53:51 UTC 2019



On 25/10/2019 14:36, Andrey V. Elsukov wrote:
> On 22.10.2019 17:30, Victor Gamov wrote:
>> 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 ?
> 
> I think expiring doesn't work for IPv6 too. At least, I didn't find
> related code from a quick look.


So, there are no ways to install route received via ICMP-redirect for 
specific time not permanent?


More general question: is it possible to install temporary route which 
expired by internal in-kernel timer ?

-- 
CU,
Victor Gamov


More information about the freebsd-net mailing list