Date: Wed, 9 Sep 2020 17:35:45 +0200 From: kaycee gb <kisscoolandthegangbang@hotmail.fr> To: freebsd-net@freebsd.org Subject: Re: IP "routing" issue Message-ID: <VE1PR03MB5629FC5FAB3212A0987F7F4CA0260@VE1PR03MB5629.eurprd03.prod.outlook.com> In-Reply-To: <20200909164254.5e7e3891@debian> References: <20200909164254.5e7e3891@debian>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Wed, 9 Sep 2020 16:42:54 +0200, Abelenda Diego <diego.abelenda@gmail.com> a écrit : > 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 side. > 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 without > 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 FreeBSD. > > Is it possible to perform this very special setup with any command on FreeBSD? > If yes what is that command? > > Best regards, > Diego Abelenda Hi, Do the other machines have a private address ? Is it a problem if they have one ? If it is possible, you can route via this private address on your FreeBSD installation to the new one and assign a public/32 to the last. Alternatively to doing routing like above, if you have a firewall enabled on the first machine, you can do address forwarding between the first and the new one. And last, maybe with something like -iface from "route" you can achieve what you want. K.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?VE1PR03MB5629FC5FAB3212A0987F7F4CA0260>
