Hello. I have such a problem.
I have FreeBSD 12.1-RELEASE router (with 3 interfaces) - LAN HOME(192.168.22.), LAN WORK(192.168.11.), WAN(1.2.3.4)
My router connect to NordVPN over OpenVPN as a client (creates new TUN0 with address 10.8.0.3)
I want now to nat only one host from LAN_HOME ( 192.168.22.30) to internet over the NordVPN.
I try to setup this with PF and this rule :
with no luck.
This works only if I add on FreeBSD router route : add route 8.8.8.8 10.8.0.1, then from 192.168.22.30 to 8.8.8.8 I go over NordVPN.
My idea is to route whole traffic over NordVPN from this LAN IP.
Thank you, for any advice.
I have FreeBSD 12.1-RELEASE router (with 3 interfaces) - LAN HOME(192.168.22.), LAN WORK(192.168.11.), WAN(1.2.3.4)
My router connect to NordVPN over OpenVPN as a client (creates new TUN0 with address 10.8.0.3)
I want now to nat only one host from LAN_HOME ( 192.168.22.30) to internet over the NordVPN.
I try to setup this with PF and this rule :
Code:
nat on tun0 from 192.168.22.30/32 to any -> (tun0)
This works only if I add on FreeBSD router route : add route 8.8.8.8 10.8.0.1, then from 192.168.22.30 to 8.8.8.8 I go over NordVPN.
My idea is to route whole traffic over NordVPN from this LAN IP.
Thank you, for any advice.