Good day to you, gentlemen. I have got Windows Server 2003 R2 x64 and OpenVPN 2.3.14 installed on my server. The server is connected to the Internet via a NAT router with 1194UDP forwarded to the server. Here is a map of the network:
Connection establishes succesfully and 10.8.0.1 is accessible from a client. But 192.168.1.99, however, is not, like the entire 192.168.1.0/24 local network.
I want it to be accessible and I also want a client to have an opportunity to connect the Internet through the 192.168.1.1 router.
I also have NAT enabled on the server:
And these statiс routes (not sure whether is's correct or not, I'm not good at routing):
And this route on the 192.168.1.1 router:
Here is the server config:
port 1194
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
topology subnet
server 10.8.0.0 255.255.255.0
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
push "redirect-gateway def1"
push «route-gateway 10.8.0.1»
push «dhcp-option DNS 8.8.8.8»
push «dhcp-option DNS 8.8.4.4»
client-to-client
keepalive 10 120
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
mssfix
And here is the client config:
client
dev tap
proto udp
remote 92.243.113.58 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
pull
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
What shall I do?