Add exceptions in OpenVPN?

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
LuisNara
OpenVpn Newbie
Posts: 2
Joined: Tue Dec 16, 2014 2:23 am

Add exceptions in OpenVPN?

Post by LuisNara » Tue Dec 16, 2014 2:29 am

Hi, i 'm using PIA VPN wyh default client, but i need to add some exceptions,
is this possible with OpenVPN?

Excpetions wiil be especially websites like hotmail, yahoo mail etc.
but will be ok, if i can add programs exceptions like skype.

Is this possible?

Thanks :)

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Add exceptions in OpenVPN?

Post by Traffic » Fri Dec 19, 2014 12:58 pm

OpenVPN cannot add exceptions by program name.

It is possible you could add routing exceptions to your client config something like this:

Your Home PC is 192.168.21.11/24 default gateway 192.168.21.1 (Typical setup)

To your client config file you can try something like this:

Code: Select all

route hotmail.com 255.255.255.255 192.168.21.1
This my not be possible for skype as its servers are not named in DNS they are configured by the skype client
So you would have to discover the IP addresses of the skype servers and route them in the same manner.

eg: if your skype client connects to 1.2.3.4/32 then (pia client config):

Code: Select all

route 1.2.3.4 255.255.255.255 192.168.21.1

LuisNara
OpenVpn Newbie
Posts: 2
Joined: Tue Dec 16, 2014 2:23 am

Re: Add exceptions in OpenVPN?

Post by LuisNara » Sat Dec 27, 2014 6:43 am

Traffic wrote:OpenVPN cannot add exceptions by program name.

It is possible you could add routing exceptions to your client config something like this:

Your Home PC is 192.168.21.11/24 default gateway 192.168.21.1 (Typical setup)

To your client config file you can try something like this:

Code: Select all

route hotmail.com 255.255.255.255 192.168.21.1
This my not be possible for skype as its servers are not named in DNS they are configured by the skype client
So you would have to discover the IP addresses of the skype servers and route them in the same manner.

eg: if your skype client connects to 1.2.3.4/32 then (pia client config):

Code: Select all

route 1.2.3.4 255.255.255.255 192.168.21.1
Thank you, but, how cai add all sudomains to exception? like "live.com" has subdomains like "login.live.com" "bay187.live.com" etc..

Thanks again :)

Post Reply