I configured an OpenVPN Server on the D-Link DSR 1000ac Router and tested a basic client settings based on the Fórum and network search.
However I've been struggled with a stranger problem. After a day or something, I can access the Router via VPN, I have access to every device on the Router LAN but it doesn't fetch the public IP, so I don't have access to the internet.
This could be a configuration problem, but surprisingly if I restart the Router, the VPN starts working perfectly again.
Has anyone ever had this type of problem? Or someone can point me some kind of resolution ?
This is my client configuration file:
Code: Select all
client
port 1723
proto udp
remote X.X.X.X
dev tun
cipher AES-256-CBC
auth-user-pass
auth SHA1
nobind
persist-key
persist-tun
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
...
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
redirect-gateway def1