I have VPN access to several machines in my office from my home machine. I'd like to be able to access those machines from another computer on my LAN, without setuping a second VPN access. Both computers are Windows 7 machines.

Is there a way for my "main" computer to share its VPN access to another machine on the LAN? How would one setup this share?

I don't think "simple" Internet connection sharing fits my needs because:

  1. My LAN already has its own DHCP/Router to access the Internet, and I'd like to keep it this way
  2. I can't access the Internet through my VPN connection
link|improve this question
Are you responsible for the VPN server? What type of VPN is it, or what VPN client does it use? – Zoredache Sep 1 '10 at 18:23
No, I'm not responsible for the VPN Server, my company sysadmins' are. I guess I can pretty easily ask them specific questions. It's a Cisco VPN, and I use Cisco AnyConnect to connect to it. – Axelle Ziegler Sep 1 '10 at 18:38
1  
installing a VPN router on your side should help you get all computers to access the VPN'ed network.. but i think both sided needs it.. hence comment only not answer – ppumkin Dec 29 '11 at 21:38
feedback

migrated from serverfault.com Sep 1 '10 at 18:21

This question came from our site for system administrators and desktop support professionals.

3 Answers

You might be able to get away with adding a route on the second machine to direct traffic to the VPN through the machine running the VPN client. I'm thinking something like:

route add 192.168.1.0 MASK 255.255.255.0 192.168.2.8

where 192.168.1.xxx is IP of the work VPN and 192.168.2.8 is IP of the VPN client. You might check out this discussion of the route command

EDIT: Linux syntax should be

route add 192.168.1.0 netmask 255.255.255.0 gw 192.168.2.8

On windows it's

route add 192.168.1.0 MASK 255.255.255.0 gateway 192.168.2.8
link|improve this answer
Will check that when Ic ome back home on monday. Thanks a lot. – Axelle Ziegler Sep 3 '10 at 15:39
Looks like I'm wrong. I spent some time playing with it and had no luck. Sorry – rlduffy Sep 7 '10 at 1:47
feedback

I believe the solution is to create a site-to-site VPN, and not have computers run the tunnel individualy.

Perhaps your sysadmins could point you in the direction on how to do so?

link|improve this answer
feedback

The ability to allow a second computer to use the VPN depends on the settings your VPN client has - usually, VPN clients preconfigured by "corporate" admins are set to only allow the node actually running the VPN client software in on the VPN link.

I had a similar problem when I wanted a device to access a CVS server behind a firewall, but did not have a VPN client on that device. Solution: configure a non-standard port on the "2nd machine", run SSH (in your case: PuTTY) to forward that port to the server only "1st machine" can see when the VPN is connected:

[2nd_machine]-->[1025/tcp PuTTy on 1st_machine forwards]-->[VPN concentrator]-->[22/tcp CVS Server]

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.