What's new

Please help to configure remote OpenVPN server for RT-N66U client

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

quicktrick

New Around Here
Hello! I have a VPS server under Ubuntu 15.4 with OpenVPN 2.4 installed. And I have RT-N66U with 380.65_beta1.

My current server config is:

Code:
dev tun
proto tcp
port 1194

ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem

user nobody
group nogroup
server 10.8.0.0 255.255.255.0

persist-key
persist-tun

status /var/log/openvpn-status.log
verb 3
client-to-client

#push "redirect-gateway def1"
push "remote-gateway 10.8.0.1"
push "redirect-gateway autolocal"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"

cipher AES-256-CBC

log-append /var/log/openvpn
comp-lzo

the client config is:
Code:
client
remote x.x.x.x 1194
proto tcp
dev tun
#resolv-retry infinite
nobind
persist-key
persist-tun
cipher AES-256-CBC
#comp-lzo
#verb 3
<ca>
-----BEGIN CERTIFICATE-----
.....
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
.....
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
.....
-----END PRIVATE KEY-----
</key>

Everything works fine on my Windows 10 machine with OpenVPN client for Windows.

But nothing works on my router. I tried lots of variations of the server and client configs but with no success. The router can connect to the server and the server log shows the connection, but I can't even ping the server or the internet from my router via SSH, it doesn't get any reply.

380.64_2 gave the same result.

Could anybody say what the problem may be?
 
I haven't analyzed your whole config, but first thing that strikes me is the server has LZO compression enabled, but your client doesn't (the line is commented out).
 
RMerlin, sorry, I forgot to mention that I set those settings in the webui. Of course, my server and client settings were the same.

Today one thing has happened. My internet provider forced me to change WAN Connection Type from L2TP to IPoE (Automatic IP). After that everything suddenly started to work with the same settings. And now my OpenVPN is working marvelously.

I don't know where the problem was. In L2TP itself or on my provider's end or perhaps in the software. And I can't check it now, because my old connection doesn't work anymore.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top