Hello.
For some time I am trying to configure VPN connection between server in my office and my laptop. I have studied a lot of articles, but I cand find out, where the problem is. I need to have acces to sources shared in offices local network which are located on server, where I am trying to setup the OpenVPN server. I have followed the instructions from these video:
https://www.youtube.com/watch?v=hKfHwQgAsUo&ab_channel=HetmanSoftware%3ADataRecoveryforWindows
The server is working, the IP adress is alocated as 10.10.10.1, so it agrees with config file. The client is conecting to the server too, the IP adress is alocated as 10.10.10.5 which agrees with config file definied for client too.
The office LAN is working with pool adress 192.168.0.0 255.255.255.0. The server IP, where te source are shared has the IP 192.168.0.213. The router is also the gateway with adress 192.168.0.1. The network is working behind the NAT, I have done port forwarding for port 1194 TCP/UDP to adress 192.168.0.213.
As I say above, the connections are established, but I am unable to pink the server from client and vice versa (Request time out).
Here you have the content of config file for server:
dev-node "ServerVPN"
mode server
port 1194
proto tcp4-server
dev tun
tls-server
tls-auth "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key" 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.key"
dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh2048.pem"
server 10.10.10.0 255.255.255.0
client-to-client
keepalive 10 120
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
client-config-dir "C:\\Program Files\\OpenVPN\\config"
verb 3
route-delay 5
route-method exe
push "route 192.168.0.0 255.255.255.0"
route 192.168.182.0 255.255.255.0
Additional config for server:
ifconfig-push 10.10.10.5 10.10.10.6
iroute 192.168.182.0 255.255.255.0
# disable
And the Client config file:
remote [server adress from DDNS}
client
port 1194
proto tcp4-client
dev tun
tls-client
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 1
remote-cert-tls server
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\ClientVPN.crt"
key "C:\\Program Files\\OpenVPN\\config\\ClientVPN.key"
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
verb 3
mute 20
Thank you for yours respones, I hope anyone can help me to resolve the problem.