question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unneeded secret in openvpn config

See original GitHub issue

opkg reports I have the following package installed: luci-app-openvpn - git-17.315.61305-a9bddc4-1

I have configured my openvpn instance and the service fails to start. This error shows up in the system log:

Mon Nov 13 22:32:23 2017 daemon.err openvpn(pia_client)[13823]: Options error: specify only one of --tls-server, --tls-client, or --secret

Upon closer inspection, I notice the following line in /var/etc/openvn-pia_client.conf

secret shared-secret.key

This line appears to be written to the file despite the fact I never intentionally add it. Removing the line and attempting to start the openvpn service works but the line is written to the file every time I attempt to start the instance from the LUCI interface.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jow-commented, Jan 17, 2018

Remove the option secret from /etc/config/openvpn

0reactions
dibdotcommented, Oct 23, 2018

not a bug at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference Manual For OpenVPN 2.4
OpenVPN supports conventional encryption using a pre-shared secret key (Static Key mode) or public key security (SSL/TLS mode) using client & server ......
Read more >
How To Guide: Set Up & Configure OpenVPN Client/server VPN
Once running in a command prompt window, OpenVPN can be stopped by the F4 key. Run OpenVPN as a service by putting one...
Read more >
Static Key Mini-HOWTO | OpenVPN
Static key configurations offer the simplest setup, and are ideal for point-to-point VPNs or proof-of-concept testing. Read more on how they work here....
Read more >
DeprecatedOptions – OpenVPN Community
This can be done on client configuration files on a one-by-one approach. Unmodified clients will be able to connect as before.
Read more >
Reference Manual For OpenVPN 2.0
OpenVPN supports conventional encryption using a pre-shared secret key (Static Key mode) or public key security (SSL/TLS mode) using client & server ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found