Hi,
I have followed this guide to setup a WireGuard server within a Jail on my FreeNAS box and it is working well. I would now like to set up a WireGuard site-to-site tunnel between the WireGuard Server and a remote router running OpenWRT, so clients connected to the OpenWRT router LAN can access clients connected to the WireGuard Server/FreeNAS LAN.
I found the guide below that can achieve this in a Linux environment using iptables, but I know BSD uses IPFW instead.
Is anybody able to convert the iptable commands in this guide to IPFW rules, so that it will work under BSD?
Specifically:
https://gist.github.com/insdavm/b1034635ab23b8839bf957aa406b5e39
Thanks
Paul
I have followed this guide to setup a WireGuard server within a Jail on my FreeNAS box and it is working well. I would now like to set up a WireGuard site-to-site tunnel between the WireGuard Server and a remote router running OpenWRT, so clients connected to the OpenWRT router LAN can access clients connected to the WireGuard Server/FreeNAS LAN.
I found the guide below that can achieve this in a Linux environment using iptables, but I know BSD uses IPFW instead.
Is anybody able to convert the iptable commands in this guide to IPFW rules, so that it will work under BSD?
Specifically:
Code:
iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
https://gist.github.com/insdavm/b1034635ab23b8839bf957aa406b5e39
Thanks
Paul