Link to home
Start Free TrialLog in
Avatar of Enzo Andriano
Enzo Andriano

asked on

configure OpenVpn client settings from .ovpn file for dd-wrt router

hello, please i am trying to configure openVpn client from a .ovpn file on my router( tp-link tl-wdr3600) using dd-wrt t v.24-sp2. i have been unsuccessful. Any help will be appreciated. Thanks


This is the content of the .ovpn file when opened with textEdit

remote web.blackberry.com@198.x.y.z 554 tcp
http-proxy 10.199.212.2 8080
client
dev tun
resolv-retry infinite
auth-retry nointeract
nobind
persist-key
persist-tun
mute-replay-warnings
#ca ca.crt
comp-lzo
verb 3
mute 20
ns-cert-type server
auth-user-pass
reneg-sec 3600
link-mtu 1578

<ca>
-----BEGIN CERTIFICATE-----
****
Y2hhbmdlbWUxETAPBgNVBCkTCGNoYW5nZW1lMR8wHQYJKoZIhvcNAQkBFhBtYWls
QGhvc3QuZG9tYWluMB4XDTEyMDgyOTExMDUyMVoXDTIyMDgyNzExMDUyMVowgaIx
CzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEVMBMGA1UEBxMMU2FuRnJhbmNpc2Nv
MRUwEwYDVQQKEwxGb3J0LUZ1bnN0b24xETAPBgNVBAsTCGNoYW5nZW1lMREwDwYD
VQQDEwhjaGFuZ2VtZTERMA8GA1UEKRMIY2hhbmdlbWUxHzAdBgkqhkiG9w0BCQEW
****
QTEVMBMGA1UEBxMMU2FuRnJhbmNpc2NvMRUwEwYDVQQKEwxGb3J0LUZ1bnN0b24x
****
IGz+dA7NfqQ+SALEUn1Trh2yQz6UdVKKy9udnd6B9oT+w2fUg/0T9c0GSS4+BjeU
VnqoPJWoCI33u/NHpzoOtsFFOCcSOGMkiD3qn2F2+hkyxSXdJcv5qVoWmuPDQWsF
9q9+0HCx1mpmhr8F9UR01bXGKOf8
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
****
cGVuVlBOIENBMB4XDTEzMDExNzAyMTExMloXDTIzMDEyMjAyMTExMlowKDEmMCQG
****
DQEBBQUAA4GBABhVzSYXHlQEPNaKGmx9hMwwnNKcHgD9cCmC9lX/KR2Y+vT/QGxK
****
bmBZk/K96P7VntzYI5S02+hOWnvjq5Wk4gOt1+L18+R/XujuxGbwnHW2
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
****
SKT8AALYaAPbYO+ZVzJdh8mIbg+xuF7A9G+7z+5ZL35lrpXKnONuvmlxkK5ESwvV
Q7EOQYCZCqa8xf3li3GUBLwcwXKtOUr3AYXhdbOh2viQdisD4Ky7H6/Nd3yMc3bu
****
FoFVAQJAUGfBJDcZIm9ZL6ZPXJrqS5oP/wdLmtFE3hfd1gr7C8oHu7BREWB6h1qu
8c1kPlI4+/qDHWaZtQpJ977mIToJwQJAMcgUHKAm/YPWLgT31tpckRDgqgzh9u4z
****
-----END PRIVATE KEY-----
</key>
Screen-Shot-2015-09-14-at-1.25.40-PM.png
Avatar of ThomasMcA2
ThomasMcA2

Did you follow the extensive wiki provided by dd-wrt?

Those sections at the end of your .ovpn file (<ca> ... </ca>  and  <key> ... </key>  are used to embed the keys within the config file. Not all VPN systems or hardware support that file format. For those that don't, the sections can be manually copied to separate files.

<ca>
move the content between the "ca" tags into  /tmp/openvpncl/ca.crt
</ca>

<key>
move the content between the "key" tags into   /tmp/openvpncl/client.key
</key>
Avatar of Enzo Andriano

ASKER

@Mr. Thomas.  there are two cert files and one private key file. placed the other one in the public client cert column.
NB: i am complete noob
Screen-Shot-2015-09-20-at-7.24.11-PM.png
the http-proxy line allows to connect via your site's http proxy to a VPN far away.
ASKER CERTIFIED SOLUTION
Avatar of Enzo Andriano
Enzo Andriano

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
solved the problem immediately