OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: Redguy on July 13, 2018, 11:51:03 pm

Title: Route based on url / domain ?
Post by: Redguy on July 13, 2018, 11:51:03 pm

Hi !

I use an ExpressVPN connection on my opnsense 18.1.11 firewall.  However, i do not want to route all traffic to the VPN, just a small part of it..

This is easily done by setting a few static routes for specific ip adresses or ip ranges and force those to use the ExpressVPN gateway while the rest will use the default GW.

However, what i would like to do is to base these routes on a certain Domain name or URL, instead of an IP address. This way it will also work if the sites in question using DNS round robing or a loadbalancer kind of setup to distribute their load over multiple servers..

Can one do such a thing with OPNSense ?