From owner-freebsd-net@freebsd.org Wed Sep 9 15:03:13 2020 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 F287E3D2F65 for ; Wed, 9 Sep 2020 15:03:13 +0000 (UTC) (envelope-from diego.abelenda@gmail.com) Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BmldF1Slhz4MkG for ; Wed, 9 Sep 2020 15:03:12 +0000 (UTC) (envelope-from diego.abelenda@gmail.com) Received: by mail-ej1-x62b.google.com with SMTP id nw23so4045537ejb.4 for ; Wed, 09 Sep 2020 08:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=Zz1SjRhp/0Xoq77gMsrcDIsqfXiwMopwO89b2DGyVQ0=; b=cq6Pqo7Ink/NRyhCuVIEDm43EhvAsiCAhSEQMn4r0U7ZrzfYymcDBLspARhj9q9wvP mV6s6pVLoi95rlFLEa6IGfAza0wHB5KMr92zaSEbCkLxaQYfoDmrgt8SuPNxF0Qj6aKK TKli35c/sKAV8DLTr6XTmi3lYbA9VKve1h4Ij3JdY5FbwY5UNq0X4FPJbq11FLmEvcXC 7iHJm3HKMc+oEoE/VLAPVIgYZJlU9KaCxh67vb/twtafk+EnwJF+hc3GmyjozT+AEYGi A94xpIDzGWz0KwlFC+hQAr35FGlVctiSnApJuHNh0aQ9MQNB4g4oxRNdm8U0CYtl+7gI 7JPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=Zz1SjRhp/0Xoq77gMsrcDIsqfXiwMopwO89b2DGyVQ0=; b=dH84cCHVRfESguHJBcwUOYIl44f5qX2Qcx3jP/vmFuraU7SaFqZhwXNSsOrWaQnvDt ZYEsziNRsgl0OnLh+2wKEGo5aZP/2mWTJobErLpkm56bL3PLocrvCStQyq63iI6yImhh XM112kxSBlDTBPP7ETn1+X2gSAuEDLeXpC9v5Y8WOVUrYc/IHHID44KkfekG4gaPi12F JCqPD8DjV86nj5h4io7Fp9aezST6tjAkQpylRYG6zFRBxXRXTCAPGL4wAGwr/uKgTViE GFwRptmUV8X9hIh7nc+mGcxXhoAqCRiOuw9PgIAkZH9Zcu9GVgEbpfuRfXSldqbvLfeM 6ceQ== X-Gm-Message-State: AOAM530RWX3umOKVC7XbOF5g5SLOQptMyzEi030gO7d9pLHDAkSVZI/g DeVC4NdE4ie2RVFJ0+bS+wQ= X-Google-Smtp-Source: ABdhPJzC/TRgkTOgAmWicorCcP3E1AHQwlmG7SWZHiGjobX+b4K4+OyWyy0Jf5hmpZt/4BcT0sz6DQ== X-Received: by 2002:a17:906:2dc1:: with SMTP id h1mr4002808eji.436.1599663791161; Wed, 09 Sep 2020 08:03:11 -0700 (PDT) Received: from debian (72.199.5.85.dynamic.wline.res.cust.swisscom.ch. [85.5.199.72]) by smtp.gmail.com with ESMTPSA id s21sm2668870edw.23.2020.09.09.08.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:03:10 -0700 (PDT) Date: Wed, 9 Sep 2020 17:03:05 +0200 From: Abelenda Diego To: Cristian Cardoso Cc: freebsd-net@freebsd.org Subject: Re: IP "routing" issue Message-ID: <20200909170305.3f8610c7@debian> In-Reply-To: References: <20200909164254.5e7e3891@debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/JEJm3K3pUBY2+N5BPa8Uijp"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-Queue-Id: 4BmldF1Slhz4MkG X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=cq6Pqo7I; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of diegoabelenda@gmail.com designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=diegoabelenda@gmail.com X-Spamd-Result: default: False [-2.24 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.022]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[85.5.199.72:received]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.37)[0.366]; NEURAL_HAM_LONG(-0.99)[-0.988]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62b:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2020 15:03:14 -0000 --Sig_/JEJm3K3pUBY2+N5BPa8Uijp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Cristian, Thank you for your pointer, however if I quote part of my question: > From my understanding in FreeBSD the route command is unable to perform t= his > kind of configuration where you tell that the IPv4 /32 is available witho= ut > next-hop (no via) on a specific link. I imply there that I read the man, tried quite a few things with the "route" command and could not get anything out of it. Best regards, Diego Abelenda On Wed, 9 Sep 2020 11:48:58 -0300 Cristian Cardoso wrote: > Hi > The equivalent command in FreeBSD for the ip route is the route, > follow manpage https://www.freebsd.org/cgi/man.cgi?route >=20 > Em qua., 9 de set. de 2020 =C3=A0s 11:43, Abelenda Diego > escreveu: > > > > Hello, > > > > I've got a FreeBSD installation in a DataCenter that provided me with a > > single address IPv4 with an upstream gateway (cidr is fine the upstream > > gateway works everything is nice and running). I use this machine for > > Masquerading an private infrastructure. > > > > Now I need other machines with public IPv4 and when I requested the > > additional IPv4 to the DataCenter, they gave me a bunch of /32 addresses > > saying that my previous IPv4 MUST be configured as next-hop on their si= de. > > From my understanding in FreeBSD the route command is unable to perform= this > > kind of configuration where you tell that the IPv4 /32 is available wit= hout > > next-hop (no via) on a specific link. I know the linux "ip route add $I= P dev > > $LINK" configures this, but I cannot seem to map this knowledge to Free= BSD. > > > > Is it possible to perform this very special setup with any command on > > FreeBSD? If yes what is that command? > > > > Best regards, > > Diego Abelenda =20 --Sig_/JEJm3K3pUBY2+N5BPa8Uijp Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEhLBEGh6nN5+aat9KomT4UAfkGfgFAl9Y7qkACgkQomT4UAfk Gfh0oA/9Evbwlb38+g8jYhdgq+gSiZSnIYEDbnek/fbCtp4gtEZLKJ8op9G8+E/3 BMdnpJSKgXpJeueGVESAiNOaxssolkNNm1FcZt78dnbr641SJPFBRgprdAG8wXJD eWxzEN5C8mR8rqslRPr43+nEojwF0QXnfnt/RChSTBgUz9KrxGYlBsq03Yf3nUAU YQNhN2QRBBdIsItEFXTPYy7EYMdbRH8HCNQ/jbDzDe1HXheCJZyA36KSbGv4R08I o6BcdjQQzpL9TzZFczxzfJlxPVBCfnYxdbJqgNo90V9BaFyFTmBAUK6veX2IkBjO 1VkmaiaiB530V+JVRTRjmGe7kNT/YpwEhxU3WYmiyM3V5Y4CvvOiEG53OK44kfLT 6dKgoa4VYOkjO5amNL6cyJ0Annapmx6TeT8RI+oTL5SMEMfnjrh3y3kOWEoked1S NiC/zMTjbyQ/h5gwf6PDzTgmnokidmqjpCudzyL4cOj/9cog8mUuDEIxOla+iFMJ Q0+sjeos4DqvVhgSznOgO8+6hYVcQhH/et3H2Jnv1DbpXLDDCR7fgSyHIVUJlfk8 ZVl5EXRUBLlivyaUH1Xnp9HJOwP45JRxMU75zrvTpOWVKzyCt+x0iKxS06ck8/JI SFrdmlbMAdLzJzD3s2xQWOYwG8epjMJgkWy7+31oxGqfLNmmJEU= =/vXA -----END PGP SIGNATURE----- --Sig_/JEJm3K3pUBY2+N5BPa8Uijp--