From owner-freebsd-net@freebsd.org Wed Sep 9 14:49:12 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 77ED53D2E5F for ; Wed, 9 Sep 2020 14:49:12 +0000 (UTC) (envelope-from cristian.cardoso11@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 4BmlK31SjQz4M09 for ; Wed, 9 Sep 2020 14:49:10 +0000 (UTC) (envelope-from cristian.cardoso11@gmail.com) Received: by mail-ej1-x634.google.com with SMTP id e23so3985057eja.3 for ; Wed, 09 Sep 2020 07:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DOJnm4O0X/px4T3q7IlKQ3jmtPF0AGoe1Nca0NUFcXE=; b=XDInrFA/JZJ8YmK6xLC86SlZNvhRsrrhDCEMKChVYmAibbj0jHQ9fqAvSkyVQM3wWe F+0JZsNU2L0UHWauUohKHqzpWBiT5NVWYUWEzgy18HdZyQxtSh1t0yIh4/s5mr3eKTDT 7+qnwxt8sxgiYVHt/uT+ZudlEEyu5YhNJG++M7ijvbPPBXWImHrPz/9flUTWgGNCiBT0 AunocTpcA+J5+HNNtaS4/I+F3O9hF9irNZlZrY+zjruZt7od0nNKGfo+sx3t2xsejp/b d+tyZAtfoTQo9IDE+ippubHc1EqHgX3sIpB5bzd8ojI/DxL+9ZYgt1yQHh/d5uuW1mqA WLgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DOJnm4O0X/px4T3q7IlKQ3jmtPF0AGoe1Nca0NUFcXE=; b=MCeOZVjWWiJv59bCSLfj7NTcPFz0AehVd959YBwXfG6vJGdmwgueLPjlXqEXmbcmfT FhoWcCHDjOE+CN3Uwl0t8lH0fIKZHEXoMXlBmqHWXI/RA37vYxAfa0yWPeBUyIA3oL1k xX0LN+ZVsuiA39t6b6Sm8shW+wrTYRpNCXkr3PkjfyQOeOHfRv5IE5fIfphCLTTNkOt/ r/9iQMmAwaqVk3XR5NG1XzVIzH6dUKJFbkHsCzB7qX3MJxRZL9ZsaGc3kYB3iM9/P79L G20uGchP55jQHo7+iHtOkF3jAWxv2qwbcdnWES6gEyo1rgmDxNSK4R7oVQcIu1oC+PEi y4pg== X-Gm-Message-State: AOAM531ebEgT7EnbBjiYQua4Quwcdi5dH28h6aum6C+muU3n+kzZ3J2Q dlKceBItncSoW73bsbRWZrumG8DYY8+pizAscZbKThRzZafW X-Google-Smtp-Source: ABdhPJwXQUxXHwZ/M60OCEgynTerSDuh7K87djnDBrenclIKcxCfZizqfcuTf1CEy+vQbsBOUQL3iygzLsy6yYvFv/s= X-Received: by 2002:a17:906:8508:: with SMTP id i8mr4228392ejx.390.1599662949264; Wed, 09 Sep 2020 07:49:09 -0700 (PDT) MIME-Version: 1.0 References: <20200909164254.5e7e3891@debian> In-Reply-To: <20200909164254.5e7e3891@debian> From: Cristian Cardoso Date: Wed, 9 Sep 2020 11:48:58 -0300 Message-ID: Subject: Re: IP "routing" issue To: Abelenda Diego Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4BmlK31SjQz4M09 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XDInrFA/; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of cristiancardoso11@gmail.com designates 2a00:1450:4864:20::634 as permitted sender) smtp.mailfrom=cristiancardoso11@gmail.com X-Spamd-Result: default: False [-2.81 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; 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:+]; 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.024]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.20)[0.198]; NEURAL_HAM_LONG(-0.98)[-0.984]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[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::634:from]; RCVD_COUNT_TWO(0.00)[2]; 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 14:49:12 -0000 Hi The equivalent command in FreeBSD for the ip route is the route, follow manpage https://www.freebsd.org/cgi/man.cgi?route 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 s= ingle > 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 p= rivate > infrastructure. > > Now I need other machines with public IPv4 and when I requested the addit= ional > 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 side. > 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 know the linux "ip route add $IP = dev > $LINK" configures this, but I cannot seem to map this knowledge to FreeBS= D. > > Is it possible to perform this very special setup with any command on Fre= eBSD? > If yes what is that command? > > Best regards, > Diego Abelenda