How do I access my local network when on a VPN?
How do I access my local network when on a VPN?
Author
Discussion

beanbag

Original Poster:

7,346 posts

271 months

Thursday 6th April 2006
quotequote all
As the subject suggests!

I'm connected to my company LAN from home through a VPN tunnel however I want to also access my local LAN at the same time to print stuff out, access files, etc....

Is this possible and how would I do it if so????

Cheers,

BB

malman

2,258 posts

289 months

Thursday 6th April 2006
quotequote all
depends on the vpn client/remote firewall as it can stop you from accessing your on network whilst connected.


bogie

17,094 posts

302 months

Thursday 6th April 2006
quotequote all
you need 'split tunnelling' enabled...a lot of companies will have disabled this in your VPN client to stop you accessing your local network as its a perceived security risk to have your local network 'bridged' to the company one and vice versa

zumbruk

7,848 posts

290 months

Friday 7th April 2006
quotequote all
An easy way round this is to run the session that's connected to work in a virtual machine of some kind (either the free VMWare one, or MS's one).

fidgits

17,202 posts

259 months

Friday 7th April 2006
quotequote all
i just drop off the VPN to access my home network...

easiest way tbh..

victormeldrew

8,293 posts

307 months

Friday 7th April 2006
quotequote all
zumbruk said:
An easy way round this is to run the session that's connected to work in a virtual machine of some kind (either the free VMWare one, or MS's one).
Sneaky, but won't quite solve the problem, unless I'm missing something. The VPN will still prevent the virtual machine from accessing the local network, so while the host PC will be able to print, the virtual one won't.

You could always print to file, then copy the file to the PC and print off. Or print anyway and disconnect at intervals to allow your network printer to spool up. Or set up your printer as an internet printer? That's always handy anyway, when you're away from base you can sent printouts to your network printer from whereever. Print to a PDF file, and print that out when offline?

Here's the irony. Network Admins pretty much tick the "no local network access" box be default in the name of security. They also normally insist you have AntiVirus software loaded. My antivirus is a network edition, served from my local network. When I connect to corporate clients through VPN they disconnect my PC from its virus signature updates, and I can be connected all day. I normally update virus signatures hourly, but if their VPN settings are preventing signature updates, and a new virus gets into their network through my PC because it couldn't update signatures, who gets the blame?

GreenV8S

31,024 posts

314 months

Friday 7th April 2006
quotequote all
If you're using a standard VPN client then just turn off the default gateway option. It defaults to 'on' for dialup connections which means that the dialup connection becomes the default outgoing route for your machine. If you turn it 'off' then only traffic that is specifically addressed to machines on the VPN will go over the VPN. This solves the problem.

victormeldrew

8,293 posts

307 months

Friday 7th April 2006
quotequote all
GreenV8S said:
If you're using a standard VPN client then just turn off the default gateway option. It defaults to 'on' for dialup connections which means that the dialup connection becomes the default outgoing route for your machine. If you turn it 'off' then only traffic that is specifically addressed to machines on the VPN will go over the VPN. This solves the problem.
Unfortunately most corporate will be using something slightly more "robust" than the default XP VPN client. Cisco VPN is very common, and this just isn't an option. I've even tried editing the .pcf file to add the EnableLocalLAN=1 option, but no joy.

malman

2,258 posts

289 months

Friday 7th April 2006
quotequote all
GreenV8S said:
If you're using a standard VPN client then just turn off the default gateway option. It defaults to 'on' for dialup connections which means that the dialup connection becomes the default outgoing route for your machine. If you turn it 'off' then only traffic that is specifically addressed to machines on the VPN will go over the VPN. This solves the problem.


That only solves the problem of using local internet access as it changes the default gateway back to your own. He would still be able to access local (own subnet) network even with the default gateway set to the remote end. I'm guessing he's got something like the cisco client on and the policy is set at the remote firewall to block local net access

zumbruk

7,848 posts

290 months

Friday 7th April 2006
quotequote all
victormeldrew said:
GreenV8S said:
If you're using a standard VPN client then just turn off the default gateway option. It defaults to 'on' for dialup connections which means that the dialup connection becomes the default outgoing route for your machine. If you turn it 'off' then only traffic that is specifically addressed to machines on the VPN will go over the VPN. This solves the problem.
Unfortunately most corporate will be using something slightly more "robust" than the default XP VPN client. Cisco VPN is very common, and this just isn't an option. I've even tried editing the .pcf file to add the EnableLocalLAN=1 option, but no joy.


The "local access" option in the Cisco IPSec VPN stuff is all driven from the server end. There's no way you can circumvent it at the client end (other than doing some seriously deep magic on the client).

victormeldrew

8,293 posts

307 months

Friday 7th April 2006
quotequote all
zumbruk said:
victormeldrew said:
GreenV8S said:
If you're using a standard VPN client then just turn off the default gateway option. It defaults to 'on' for dialup connections which means that the dialup connection becomes the default outgoing route for your machine. If you turn it 'off' then only traffic that is specifically addressed to machines on the VPN will go over the VPN. This solves the problem.
Unfortunately most corporate will be using something slightly more "robust" than the default XP VPN client. Cisco VPN is very common, and this just isn't an option. I've even tried editing the .pcf file to add the EnableLocalLAN=1 option, but no joy.


The "local access" option in the Cisco IPSec VPN stuff is all driven from the server end. There's no way you can circumvent it at the client end (other than doing some seriously deep magic on the client).
I thought that, but I stumbled across the .pcf file and option therein, so the hacker in me thought "why not?"! Seems silly to have a config option that does nothing.

Still - deep magic eh? Don't suppose the incantations could find their way by email?

zumbruk

7,848 posts

290 months

Friday 7th April 2006
quotequote all
victormeldrew said:
zumbruk said:
An easy way round this is to run the session that's connected to work in a virtual machine of some kind (either the free VMWare one, or MS's one).


Sneaky, but won't quite solve the problem, unless I'm missing something. The VPN will still prevent the virtual machine from accessing the local network, so while the host PC will be able to print, the virtual one won't.


Sadly correct.

victormeldrew said:
but if their VPN settings are preventing signature updates, and a new virus gets into their network through my PC because it couldn't update signatures, who gets the blame?


Oh, that one's simple. You do.



GreenV8S

31,024 posts

314 months

Friday 7th April 2006
quotequote all
Luckily I don't have to use anything special at the client side. Does the Cisco IPSec take over as the default route using the normal routing table manipulation, or is it doing something more fundamental? I can't see why there would be any need for the VPN client to inhibit the other interfaces, but maybe there's something I'm missing. If it's just as result of the routing changes then you could overcome it by changing the routing configuration yourself? (In fact that's how it used to be done here until I stumbled across the default gateway option ...)

malman

2,258 posts

289 months

Friday 7th April 2006
quotequote all
You know I never actually checked but it does plant something in the IP stack so I suspect a simple manual route is not going to cut the mustard.

I had a client install go bad which meant no IP connectivity at all and I had to manually remove it as the uninstall wouldn't run. It messes with the windows login dialogue stuff too

GreenV8S

31,024 posts

314 months

Friday 7th April 2006
quotequote all
I guess the encryption will have to be done within the stack, but according to my limited understanding of IPSec this *may* be separate from the routing changes. It might depend which mode the IPSec connection is operating in though, this might only be true if it is using tunneling.

malman

2,258 posts

289 months

Friday 7th April 2006
quotequote all
yeah but if I had something in the stack that sees all traffic and I had designed an option on my firewall server that banned local traffic I would just make my stack plugin conveniently lose all local ip packets down the nearest dev/null otherwise some smart alec will manualy edit the routing table and bypass my security feature

zumbruk

7,848 posts

290 months

Friday 7th April 2006
quotequote all
GreenV8S said:
Luckily I don't have to use anything special at the client side. Does the Cisco IPSec take over as the default route using the normal routing table manipulation, or is it doing something more fundamental?


I only have experience of running it on Solaris, but it screws with all your network connections at some fundamental level way below default routes. I hate it. And I specified it.

zumbruk

7,848 posts

290 months

Friday 7th April 2006
quotequote all
victormeldrew said:
Still - deep magic eh? Don't suppose the incantations could find their way by email?


No, sorry. I meant something along the lines of decompiling the client and modifying it to do what I want. It's much easier to get another machine to use for dialin to work.

orgasmicliving!!

5,964 posts

250 months

Sunday 9th April 2006
quotequote all
If you have two networking devices, connect to the local network only on one and use the other one to connect to the local network, then vpn in to your remote network.

I am guessing this would work, but have never had a need to try it. I don't enable the restriction on the VPN clients for my firewall.

Otherwise, I would go with the virtual machine workaround.

GreenV8s' suggestion would not work for the reasons cited earlier.

zumbruk

7,848 posts

290 months

Sunday 9th April 2006
quotequote all
orgasmicliving!! said:
If you have two networking devices, connect to the local network only on one and use the other one to connect to the local network, then vpn in to your remote network.


Doesn't work. The Cisco VPN client, if configured so to do, kills all the other network connections. And bloody irritating it is, too. Hell, I can't get the LANRover Shiva (aka Intel VPN) client to route over its VPN tunnel, even though it theoretically should be able to.