From owner-freebsd-questions@freebsd.org Wed Aug 18 22:52:11 2021 Return-Path: Delivered-To: freebsd-questions@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 ED8BD657EFB for ; Wed, 18 Aug 2021 22:52:11 +0000 (UTC) (envelope-from freebsd-database@pp.dyndns.biz) Received: from keymaster.local (ns1.xn--wesstrm-f1a.se [81.4.102.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "keymaster.pp.dyndns.biz", Issuer "keymaster.pp.dyndns.biz" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gqjp26bD4z3Pm5 for ; Wed, 18 Aug 2021 22:52:10 +0000 (UTC) (envelope-from freebsd-database@pp.dyndns.biz) Received: from [192.168.69.69] ([192.168.69.69]) by keymaster.local (8.16.1/8.16.1) with ESMTP id 17IMojN6097991 for ; Thu, 19 Aug 2021 00:50:47 +0200 (CEST) (envelope-from freebsd-database@pp.dyndns.biz) To: freebsd-questions@freebsd.org From: =?UTF-8?Q?Morgan_Wesstr=c3=b6m?= Subject: Static route and arp problem in FreeBSD 13.0 Message-ID: <7fab4cb0-8045-fc8d-7bfd-887495dc00ff@pp.dyndns.biz> Date: Thu, 19 Aug 2021 00:50:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Gqjp26bD4z3Pm5 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-database@pp.dyndns.biz has no SPF policy when checking 81.4.102.176) smtp.mailfrom=freebsd-database@pp.dyndns.biz X-Spamd-Result: default: False [-0.80 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; HFILTER_HELO_IP_A(1.00)[keymaster.local]; NEURAL_HAM_SHORT(-1.00)[-1.000]; HFILTER_HELO_NORES_A_OR_MX(0.30)[keymaster.local]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; DMARC_NA(0.00)[pp.dyndns.biz]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:198203, ipnet:81.4.100.0/22, country:NL]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2021 22:52:12 -0000 Hi, I have my stupid hat close, ready to put on because I've most likely missed something obvious and I need your help to point it out. :) I've been using FreeBSD as my router/firewall for 15 years and it's a simple and straight setup: +--------------+ +-------------+ | | | | LAN em1| FreeBSD 12.2 |em0 | Cable modem | Internet ---------------+ +-----------------------+ +--------- 192.168.69.0/24| router |DHCP 192.168.0.1| bridge mode | | |public ip | | +--------------+ +-------------+ To access the cable modem's web interface, which has a private ip on the public facing side of the router, I add the following static route and arp entry in the router's /etc/rc.conf: route_cable="-host 192.168.0.1 -link em0:d8:d7:75:f3:9b:14 -iface -static" static_routes="cable" static_arp_cable="192.168.0.1 d8:d7:75:f3:9b:14 pub only" static_arp_pairs="cable" The MAC address is the router facing interface on the cable modem. I can now access 192.168.0.1 from my LAN and this has worked perfectly for many years until I try it on FreeBSD 13.0. The route/arp is not registered at startup and trying to add the route manually results in the following message: # route add -host 192.168.0.1 -link em0:d8:d7:75:f3:9b:14 -iface -static route: writing to routing socket: Network is unreachable add host 192.168.0.1: gateway em0:d8:d7:75:f3:9b:14 fib 0: Network is unreachable Adding the arp record doesn't work either but that was expected since it requires the route to be added first. The most likely scenario is that I missed something fundamental in my 13.0 setup but I can't figure out what and the error message isn't really helpful. The less likely reason is that something changed between FreeBSD 12.2 and 13.0 but I can't spot any changes in the man pages. Any pointers would be greatly appreciated. Regards Morgan Wesström