I’d like to properly configure pfSense with a split tunnel VPN to route only specific domains over the VPN and all other traffic to regular ISP. For example, just netflix.com would use the VPN.
I have it working by
OpenVPN client configured and working.
DNS resolver:
I could post all settings but for
outgoing interfaces: both WAN and VPN
Domain Overrides: VPN DNS servers for each domain specified in VPN alias
Alias: specifies the domains to route over the VPN
Floating rule: WAN kill switch Block domain(s) if VPN down (Tagged to NO_WAN_EGRESS)
LAN rules
- Allow LAN to DNS resolver
- Route domains (specified in alias) to VPN gateway (Tag: NO_WAN_EGRESS)
- Any Any rule. Allow LAN to access internet.
I spent many hours before I got it working as I ran into DNS issues and internet access blocked if the VPN went down. I’m reasonably certain regular ISP and the VPN traffic are using the correct DNS servers as when I added dnsleaktest.com to the alias and added the domain with VPN DNS servers in DNS Resolver Domain Overide, when the VPN is up, the leak test confirms I’m on VPN DNS servers and no leak. Another test I used was NordVPN website as when domain is routed to the VPN and shows the VPN IP and DNS servers. Tracert to a domain in the VPN alias doesn’t show the path which I think is expected? I’m open to anymore tests you can suggest to confirm things are working as they should. Seems like common use scenario, Tom any interest in a new tutorial video? ![]()