Make only certain domain name traffic pass through OVPN

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Reader
OpenVpn Newbie
Posts: 1
Joined: Sun Jun 28, 2015 3:42 pm

Make only certain domain name traffic pass through OVPN

Post by Reader » Sun Jun 28, 2015 3:55 pm

Hello,

I've been using OpenVPN for about a year and it's been pretty great, but there's an issue that I've yet to find a solution for.

The thing is, youtube is blocked in my country, and that's about the only that I've been using openvpn for, but youtube has thousands of IP's, and I've had to specify entire IP blocks in my OVPN config script, and because of that some sites that should not be passing through OVPN, are.

So, I was wondering if there's a way to make OVPN compare domain names and then pass only the specified domain name (i.e youtube.com, ytimg.com, etc.) through the VPN and allow all other traffic to bypass the VPN.

Thanks for the great job you've done with OpenVPN.

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

Re: Make only certain domain name traffic pass through OVPN

Post by Traffic » Mon Jun 29, 2015 9:22 pm

OpenVPN provides a secure tunnel nothing more.

Did you try this:
The Manual wrote:--allow-pull-fqdn
  • Allow client to pull DNS names from server (rather than being limited to IP address) for --ifconfig, --route, and --route-gateway.

Post Reply