OPENVPN Network setup behind a NAT Router
Hi,
I am sure this is pretty basic question but I am not sure of how to handle the OPENVPN Network setup.
I am trying to setup a VPN for my small office so that I can work on it remotely.
I have the OPENVPN Server sitting behing a NAT box and I have opened a pinhole to forward port 1194 traffic to the OPENVPN box. This setup works fine as I can connect remotely to this server and it assigns the remote machine an IP in the 10.8.x.x range.
The real problem arises while trying to connect to PC's that are connected to the NAT Box as their IP Range is in the 192.168.x.x range as they are receiving ip's from the NAT box.
I am confused as to whether the open vpn server should also serve as a dhcp server for the internal network or can the internal network get ip's from the NAT Router and the OPENVPN can be one of the clients of the NAT Box.
So this is overall openvpn setup
ISP ----------------|============ |
| DSL Modem |
| NAT Router |
+++++++++++++
|
|
|
--------------------------------------------------------------------------------------------
| | | |
OpenVPN PC 2 PC 3 PC 4 ................
Server
Notes:
1) The main internet connection comes to the NAT Router
2) A firewall pin hole is opened to forward all OpenVPN (port 1194) traffic to PC 1(OPENVPN) on the NAT Box
3) The NAT Router's IP Range is 192.168.0.0/24 network
The problem with this setup is that I can connect to the OPENVPN from outside but I cannot connect to PC2/PC3 etc as their IP's are in the 192.168 range.
So my question is should I setup some kind of forwarding on the openvpn server so that I can connect to PC2 /PC3 or should the open vpn server be acting as the main gateway and assiging IP Addresses to PC 2 / PC 3 etc
I hope I am making sense here.
|