Route only specific hostnames through the VPN
Posted: Sun Apr 11, 2021 11:24 pm
Hello,
I have been trying to figure out how to route specific hostname (example.com) through the VPN and all other traffic will not use VPN.
I tried adding following to the .ovpn file
where IP_ADDRESS is the ip address for the host (example.com) that I want to go through the VPN but I get an error
Is this something possible to do? Also I would like to avoid ip address and specify hostname (I think I need allow-pull-fqdn but that is next step)
I have an Asus router with Merlin firmware.
I have been trying to figure out how to route specific hostname (example.com) through the VPN and all other traffic will not use VPN.
I tried adding following to the .ovpn file
Code: Select all
route-nopull
route IP_ADDRESS 255.255.255.0
Code: Select all
Options error: option 'redirect-gateway' cannot be used in this context ([PUSH-OPTIONS])
Options error: option 'dhcp-option' cannot be used in this context ([PUSH-OPTIONS])
Options error: option 'route' cannot be used in this context ([PUSH-OPTIONS])
I have an Asus router with Merlin firmware.