IP "routing" issue

kaycee gb kisscoolandthegangbang at hotmail.fr
Wed Sep 9 15:35:59 UTC 2020


Le Wed, 9 Sep 2020 16:42:54 +0200,
Abelenda Diego <diego.abelenda at 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.


More information about the freebsd-net mailing list