Page 1 of 1
Push webdomains to clients
Posted: Sun May 15, 2011 9:29 am
by sergani
Dear all,
I've been able to push specific IP addresses, or even subnets, and it's working beautifully!
Can one expand this as well to push website names as well?
Case: I would like to push
www.example.com to my clients, as well as
www.yahoo.com etc... I mean selective website names.
Re: Push webdomains to clients
Posted: Sun May 15, 2011 9:01 pm
by janjust
add
to the client config ; with that you can use
Code: Select all
push "www.google.com 255.255.255.255"
and the likes.
Re: Push webdomains to clients
Posted: Sun May 15, 2011 10:00 pm
by sergani
Thanks a lot man!!!
Can't thank you enough!!!
Re: Push webdomains to clients
Posted: Mon May 16, 2011 2:59 am
by Douglas
janjust wrote:add
to the client config ; with that you can use
Code: Select all
push "www.google.com 255.255.255.255"
and the likes.
I didn't know this. Bookmarked this post for future reference.
Re: Push webdomains to clients
Posted: Mon May 16, 2011 8:51 am
by sergani
Ok so I've been fooling around for a while and all's working fantastically well!
Is it possible to route *.yahoo.com through the VPN server? Currently what I push is what I route;
www.yahoo.com. Say for example I need to route mail.yahoo.com and such, what should I do?
I tried .yahoo.com 0.0.0.0 but that did nothing, as expected. I didn't read anything about OpenVPN making use of regex.
Re: Push webdomains to clients
Posted: Mon May 16, 2011 8:55 am
by janjust
openvpn does not use regexp for this; wildcards would never work in this case, as you'd have conditional routing based on a DNS name - I am not aware of any software that can do that on the networking (L3) level. As I said, you'd be better off usiing a SOCKS proxy for this.