private internet access work with opnsense

Started by robertkwild, November 22, 2024, 11:11:02 AM

Previous topic - Next topic
hi all,

im going to be getting PIA and just want to know if i can set it up on my router instead of every host device

if possible i only want PIA to route only certain traffic ie a port down it, is this possible and would like to set up the kill switch no leaks dns etc aswell

thanks,
rob

Quote from: robertkwild on November 22, 2024, 11:11:02 AM
im going to be getting PIA and just want to know if i can set it up on my router instead of every host device
Yes, as long as the VPN is compatible to OPNsense: OpenVPN, Wireguard, IPSec

Some provider give you a tutorial to set it up on OPNsense.

Quoteif possible i only want PIA to route only certain traffic ie a port down it, is this possible and would like to set up the kill switch no leaks dns etc aswell

You can direct specific traffic by Policy based routing to the remote VPN endpoint. See https://docs.opnsense.org/manual/firewall.html#policy-based-routing

For avoiding DNS leaks, it's best practice to redirect the whole DNS traffic from the concerned clients over the VPN to a public server. You can use the providers DNS, if applicable.