Hi
I'm struggling with the following network setup for some days now.
I read many threads on this forum but fail to find a suitable solution.
Please help me.
Here is the network diagram:
Server side Client side
+---------------+ +---------------+
| Gateway | | Gateway,DNS |
| S 192.168.1.1 | | S 192.168.2.1 |
+-------+-------+ +-------+-------+
| |
| +---------------+ +---------------+ |
| | 192.168.255.x +==========+ 192.168.255.y | |
| | OpenVPN | | OpenVPN,DHCP | |
+----------+S 192.168.1.21 | |S 192.168.2.21 +----------+
| +---------------+ +---------------+ |
| | Hyper-V | |
| |S 192.168.1.20 | |
| +---------------+ |
| |
| +---------------+ |
| | DHCP,DNS | |
+----------+S 192.168.1.24 | |
| +---------------+ |
| |
+-------+-------+ +-------+-------+
| PC | | PC |
|R 192.168.1.101| |R 192.168.2.210|
+---------------+ +---------------+
The gateways are basic routers (D-Link and Belkin).
The servers (OpenVPN, Hyper-V, DHCP/DNS) are all Windows Server 2012.
The PCs are Windows 8 (server side) and Windows 7 (client side).
Since I can't specify static routes in the router configuration, I decided to use DHCP servers on both sides.
On the Server side, I have a file server to which I added DHCP and DNS server roles (192.168.1.24).
On the client side, the DHCP server is on the OpenVPN server (192.168.2.21) and DNS is on the gateway.
"S" in front of the IP Address means the IPv4 configuration is static.
"R" in front of the IP Address means the IPv4 configuration is dynamic, but reserved in the DHCP.
Here is the OpenVPN server config:
port 1194
proto udp
dev tun
server 192.168.255.0 255.255.255.0
route 192.168.2.0 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
client-to-client
client-config-dir "C:\\Program Files\\OpenVPN\\config"
ifconfig-pool-persist ipp.txt
max-clients 100
keepalive 10 120
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\ServerNode.crt"
key "C:\\Program Files\\OpenVPN\\config\\ServerNode.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Here is the client file on the server:
iroute 192.168.2.0 255.255.255.0
Here is the OpenVPN client config:
client
proto udp
dev tun
remote serverdomain.com 1194
resolv-retry infinite
ping 15
ping-restart 45
ping-timer-rem
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\ClientNode.crt"
key "C:\\Program Files\\OpenVPN\\config\\ClientNode.key"
ns-cert-type server
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Based on all the reading I've made, I ensured:
1. Port 1194 forwarding to OpenVPN server is configured in the server side gateway.
2. IP forwarding is enabled on both OpenVPN servers
3. Firewall is inactive on the VPN interface on both OpenVPN servers
4. ICMPv4 is allowed on both OpenVPN servers
5. Port 1194 is allowed on both OpenVPN servers
6. Static route 192.168.2.0 - 255.255.255.0 - 192.168.1.21 added to server side DHCP Static route option 121
7. Static route 192.168.255.0 - 255.255.255.0 - 192.168.1.21 added to server side DHCP Static route option 121
8. Static route 192.168.1.0 - 255.255.255.0 - 192.168.2.21 added to client side DHCP Static route option 121
9. Static route 192.168.255.0 - 255.255.255.0 - 192.168.2.21 added to client side DHCP Static route option 121
At some point, I managed to establish a link between the two OpenVPN servers.
I was able to ping each OpenVPN servers from each other (ex. ping 192.168.2.21 from 192.168.1.21 and vice-versa was OK).
But I've never managed to ping the PCs behind the OpenVPN servers.
Before posting Route Prints and log files, I have a few questions:
1. Since the servers with static IP Address don't receive the DCHP static routes, do I have to manually add them to these servers?
a. If yes, is it also true for the OpenVPN servers?
b. If yes, is it also true for the Hyper-V server?
2. Do I have to enable IP forwarding on the Hyper-V server?
3. Do I have to deactivate the Firewall on the Hyper-V server?
4. Are my config files OK?
5. I read that AES cipher may not be compatible with Windows. Should I use another cipher?
a. If yes, which one?
Many thanks for your help.