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

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cmariotti
OpenVpn Newbie
Posts: 1
Joined: Tue Feb 15, 2011 7:30 am

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

Post by cmariotti » Tue Feb 15, 2011 7:41 am

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?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

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

Post by janjust » Tue Feb 15, 2011 11:03 am

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

sergani
OpenVPN User
Posts: 22
Joined: Fri May 13, 2011 2:47 pm
Location: Cairo, EG

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

Post by sergani » Sun May 15, 2011 5:46 pm

Hello,

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

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

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

Post by janjust » Sun May 15, 2011 9:10 pm

that won't work; you're better off using a SOCKS proxy for that.

sergani
OpenVPN User
Posts: 22
Joined: Fri May 13, 2011 2:47 pm
Location: Cairo, EG

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

Post by sergani » Sun May 15, 2011 10:05 pm

Hello...

But you just replied @ post12065.html

and the answer works perfectly!!
///Sergani

Post Reply