Page 1 of 1

How to route through a VPN server for a single remote web?

Posted: Tue Feb 15, 2011 7:41 am
by cmariotti
I have an odd situation that I do not know what the term would be used to describe it... So bare with me.

I want to have people working from home to connect to our office network via openvpn. The office network has been added to an allow Ip list for a remote public web site (offsite at a datacenter).

I only want these home workers to route data through the office for this single web site. Again, the web site is Not at the office, it is a public web site with a public ip address that has access restrictions based on the source ip address (in this case, our office network).

How would I implement this in openvpn and what is the proper terms to use for looking this type of configuration up?

Re: How to route through a VPN server for a single remote we

Posted: Tue Feb 15, 2011 11:03 am
by janjust
1) set up openvpn "like normal", i.e. allow your remote workers to contact your office network
2) push out an extra route to the clients:
push "route <remote-website> 255.255.255.255"
for a single host - this will route all traffic to the website via the VPN.

HTH,

JJK

Re: How to route through a VPN server for a single remote we

Posted: Sun May 15, 2011 5:46 pm
by sergani
Hello,

What if the website is a domain name, such as yahoo.com?

Re: How to route through a VPN server for a single remote we

Posted: Sun May 15, 2011 9:10 pm
by janjust
that won't work; you're better off using a SOCKS proxy for that.

Re: How to route through a VPN server for a single remote we

Posted: Sun May 15, 2011 10:05 pm
by sergani
Hello...

But you just replied @ post12065.html

and the answer works perfectly!!