Hey #FreeBSD folks! I have a host that runs jails and also wireguard tunnels on ...

@pertho@bsd.cafe

Hey #FreeBSD folks! I have a host that runs jails and also wireguard tunnels on it. It is NOT the router in my network (that's being performed by the ISP-given router).

The network is dual stack and uses both IPv4 and IPv6. This FreeBSD host not only needs to do routing between the private NAT jails but also the wireguard networks, BUT, it still needs to accept router advertisements from the router.

So gateway_enable and ipv6_gateway_enable are right out because if they're enabled, FreeBSD ignores the router advertisements and IPv6 is basically broken on it (it can't router packets)

I still need net.inet.ip.forward=1 in /etc/sysctl.conf because I use Wireguard and PF to NAT traffic out to the internet for one of the wireguard clients. So that is OK to set but I just don't have to enable the gateway options in /etc/rc.conf, right?

Does this also mean I won't be able to do any IPv6 routing of traffic in the wireguard tunnels? They have to be IPv4 only?