Network setup default route with a different source?

I need help setting up network and routing on a VM running proxmox at OVH.

The OVH documentation give a linux example that doesn't translate to FreeBSD:

I've tried to find the answer in the freebsd handbook, but it mostly covers use cases for gateways/routers.

VM hosts are on a proxmox software bridge with a gateway of 192.168.0.1
My assigned IP is: 51.79.123.123

My Freebsd host is 192.168.0.123 and can ping the proxmox machine at 192.168.0.1.
All outgoing traffic to/from the internet is supposed to go through the 192.168.0.1 gateway

rc.conf has the following:
hostname="myhostname.mydomainname.com"
defaultrouter="192.168.0.1"
ifconfig_vtnet0="inet 192.168.0.123 netmask 0xffffff00"
ifconfig_vtnet0_alias0="inet 51.79.123.123 netmask 0xffffffff"
static_routes="net1 net2"
route_net1="-net 51.79.123.123/32 -iface vtnet0"
route_net2="default 192.168.0.1"

Any ideas?

Thanks
 
Back
Top