VPN and IP addresses
Author
Discussion

hab1966

Original Poster:

1,126 posts

243 months

Friday 20th July 2007
quotequote all
I have a small office, connected to the internet via a ADSL router/gateway. All the PC's in the office have 10.0.0.xxx IP addresses obtained from the Gateway DHCP server. Within the office there are certain computers with a fixed IP address that run certain pieces of software ie FTP server.

I would like to be able to access the network from home and inparticular the FTP server. I dont want to have to forward the port on the router/gateway firewall to the FTP server.

I was considering the creation of a VPN between my house router/gateway to the office router/gateway. From my understanding of VPN, that will work. My question relates to the IP address for my computer at home. If the VPN is established, can my home computer obtain an IP address from the office DHCP server? If not can i set my home computer to have an IP address in the 10.0.0.xxx range, making sure that the DHCP in the office doesnt use this address?

mystomachehurts

11,669 posts

281 months

Friday 20th July 2007
quotequote all
That's pretty much correct.

The finaly solution is dependant on your edge router, it may or may not be able to terminate a VPN on it's public facing interface (many lower market ones only do vpn-pass-through). If the router is not upto it and you have a Windows or Linux server, then it can act as the VPN server, you just need to forward the VPN packets at the router.

What hardawre/operating systems are you using?


pdV6

16,442 posts

292 months

Friday 20th July 2007
quotequote all
hab1966 said:
If the VPN is established, can my home computer obtain an IP address from the office DHCP server? If not can i set my home computer to have an IP address in the 10.0.0.xxx range, making sure that the DHCP in the office doesnt use this address?
Assuming that you can establish a VPN connection to your office router, then your home PC will pick up an IP address from it's DHCP server when connected. You'll be able to see your office network but will simultaneously lose internet access on the home PC.

hab1966

Original Poster:

1,126 posts

243 months

Friday 20th July 2007
quotequote all
Thanks for the replies.

Currently we have a Draytek Vigor 2600 in the office and i have some cheap chinese router at home. I'd read that sometimes it was difficult to get VPN's set up between different routers, so was thinking of upgrading the office router to a Vigor V2800VG and getting the same at home, to try and reduce any difficulties.

O/s is Windows XP home/Pro. No linux.

What did throw me was the VPN topology exampe here http://www.draytek.co.uk/products/about_vpn.html , as it showed different Private IP addresses. I was expecting to see them all similar, not a mix.

pdV6

16,442 posts

292 months

Friday 20th July 2007
quotequote all
You'd be the "remote teleworker" rather than a branch office and would establish a temporary VPN connection direct from your client PC to the office router.

For the branch offices, each would have separate private IP ranges and the routers would handle routing data between themselves via the VPN; the individual networked client PCs have no knowledge of the VPN.

There'd be nothing to stop you setting up your home office as a branch office with a "permanent" VPN connection between routers capable of doing so, but it would be overkill.

Edited by pdV6 on Friday 20th July 10:49

malman

2,258 posts

290 months

Friday 20th July 2007
quotequote all
pdV6 said:
You'll be able to see your office network but will simultaneously lose internet access on the home PC.
Only if configured to do so, you don't have to change your default gateway as part of the connection. Some vpn clients have split tunneling specifically to allow or disallow local network access on the client machine also.


GreenV8S

31,027 posts

315 months

Friday 20th July 2007
quotequote all
pdV6 said:
hab1966 said:
If the VPN is established, can my home computer obtain an IP address from the office DHCP server? If not can i set my home computer to have an IP address in the 10.0.0.xxx range, making sure that the DHCP in the office doesnt use this address?
Assuming that you can establish a VPN connection to your office router, then your home PC will pick up an IP address from it's DHCP server when connected. You'll be able to see your office network but will simultaneously lose internet access on the home PC.
You won't lose internet connection if you deselect the 'default gateway' option on the VPN network interface.

The addresses you're seeing look funny because you're only seeing half the picture. The VPN acts as a virtual network interface on the PC, giving you an additional IP address when it's connected. So your home PC will have it's current address within your home network, AND an address within your office network.

pdV6

16,442 posts

292 months

Friday 20th July 2007
quotequote all
GreenV8S said:
pdV6 said:
hab1966 said:
If the VPN is established, can my home computer obtain an IP address from the office DHCP server? If not can i set my home computer to have an IP address in the 10.0.0.xxx range, making sure that the DHCP in the office doesnt use this address?
Assuming that you can establish a VPN connection to your office router, then your home PC will pick up an IP address from it's DHCP server when connected. You'll be able to see your office network but will simultaneously lose internet access on the home PC.
You won't lose internet connection if you deselect the 'default gateway' option on the VPN network interface.
True, but to browse the remote network using computer names rather than IP addresses, you need to select it!

GreenV8S

31,027 posts

315 months

Friday 20th July 2007
quotequote all
pdV6 said:
GreenV8S said:
pdV6 said:
hab1966 said:
If the VPN is established, can my home computer obtain an IP address from the office DHCP server? If not can i set my home computer to have an IP address in the 10.0.0.xxx range, making sure that the DHCP in the office doesnt use this address?
Assuming that you can establish a VPN connection to your office router, then your home PC will pick up an IP address from it's DHCP server when connected. You'll be able to see your office network but will simultaneously lose internet access on the home PC.
You won't lose internet connection if you deselect the 'default gateway' option on the VPN network interface.
True, but to browse the remote network using computer names rather than IP addresses, you need to select it!
Unless you configure your DNS appropriately.

SneakyNeil

9,297 posts

268 months

Friday 20th July 2007
quotequote all
I've managed to use the standard XP VPN client to connect to a Vigor 2600 before. I did have to change something on the vigor but can't for the life of me remember what it was! Something to do with authenication protocols maybe. There's a little bell trying to ring in my head but I can't quite hear it!

If you do go down the teleworker/xp client path, it just acts as if it's another network card in your PC. You'l have a different subnet at home than in the office - the ends of the VPN route between the two subnets, if both ends were on the same subnet it would all go a bit pete tong.