From nobody Sat Nov 11 09:56:16 2023 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SSB0k04dTz4ywbF for ; Sat, 11 Nov 2023 09:56:22 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SSB0j1SThz4WhG for ; Sat, 11 Nov 2023 09:56:21 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=enki-multimedia.eu header.s=protonmail header.b=HAlCdG8f; spf=pass (mx1.freebsd.org: domain of benoitc@enki-multimedia.eu designates 185.70.40.22 as permitted sender) smtp.mailfrom=benoitc@enki-multimedia.eu; dmarc=pass (policy=none) header.from=enki-multimedia.eu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail; t=1699696579; x=1699955779; bh=JigtvHW0oDmSCLmEo98rmlqD2rgaKbg1AbkWYo9v/2I=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=HAlCdG8f0kuo+wwK/GTIIgTh62gy9+70fFC1aardPnKhcB0cIUKDCKM3IonOVelT9 qM2D/KhSw7rafvQUP2sMkVdfDkmPg+OUyWAE/nDAtod9xJrUUYOsQv9qXGHRiHuEB7 mKmsLL/nBcX0HkRvivP2hHwVCD5OrZSu6sBoftRu24Bwc6uhdXYRoYNEcRH0k/kAaU 5W603JiyQWK2BTPGVUCASo7z9i0Cb2ap8U7lURtUr5hSqIWFrRgDNIarbBC/2dYOfL iRCTw4EogJ3SpPntumgUGrq+cgv18ObzfFq1L/+Sg/NSMX/wQoR59QAfRk5BY0fGzv 2BYeS/jxvctGA== Date: Sat, 11 Nov 2023 09:56:16 +0000 To: "freebsd-net@FreeBSD.org" From: Benoit Chesneau Subject: loopback and IP source Message-ID: Feedback-ID: 9066678:user:proton List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.40 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[enki-multimedia.eu,none]; RWL_MAILSPIKE_EXCELLENT(-0.40)[185.70.40.22:from]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; R_DKIM_ALLOW(-0.20)[enki-multimedia.eu:s=protonmail]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[enki-multimedia.eu:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4SSB0j1SThz4WhG X-Spamd-Bar: ---- Is there a way to ensure that the IP set in loopback on the rc.conf is alwa= ys used as source for routing. I setup it like this: ``` cloned_interfaces=3D"lo1" ifconfig_lo1=3D"inet 195.24.245.226/32 up" ifconfig_lo1_ipv6=3D"inet6 2a12:5541:1:1::3/128" ``` and others IP are set on interfaces or vlans. All routes informations are f= etched via BGP. The strange thing is that when I do a ping to `1.1.1.1`` th= is work (and pass via one of the vlan through the transit). But when I do a= ping to another IP going through an IX the ping only work when I force the= source using `-S`: `ping -S $MY_IP $OTHER_IP` . Is there something to do ?= How to investigate such issue?=20 Beno=C3=AEt