I live in a place where Google/Facebook/Twitter and a few other websites are not available from accessing. OpenVPN is a great tool to overcome this.
Originally, I must have OpenVPN running all the time in order to be able to have an uninterruptible access to the above listed sites, but the problem is that having all my traffic go through VPN, some websites(local to my country) would be too slow. Later on, I learned that split tunneling could be utilized so that only specific websites go through the VPN, and all other traffic would go through the local network.
However, until now, I am only able to do this using IP address as follows:
route-nopull
route 1.2.3.4
I'd have to specify hosts entries to map ip address to hostnames. But the problem is, sites like google and facebook have quite a lot of IP addresses, and each of which could be used for only a specific sub-domain. This is a lot of work and hard to maintain.
From Googling, people seem to be talking about allow-pull-fqdn
, which seems to be used for retrieving IP addresses from the server using the FQDN, and config is like the following:
allow-pull-fqdn
route-nopull
route google.com
in which, the ip address of google.com would be retrieved from the OpenVPN server, so that I wouldn't have to specify it locally. But so far I haven't been able to make it work, which makes me wonder if it could be used in my case after all.
The documentation on OpenVPN is not so detailed, and I haven't been able to find more information about this elsewhere, could you please point me to the right direction?
Thank you so much in advance!