Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Advanced OpenVPN configuration via GUI options #2048

Closed
ashceryth opened this issue Jan 3, 2018 · 18 comments
Closed

Enhancement: Advanced OpenVPN configuration via GUI options #2048

ashceryth opened this issue Jan 3, 2018 · 18 comments

Comments

@ashceryth
Copy link

ashceryth commented Jan 3, 2018

Hi,

It would be great if it would be possible to configure some more advanced settings for OpenVPN directly via options in the GUI rather than using the "Advanced configuration" field. I am thinking of GUI options reflecting the following OpenVPN config options:

  • tls-version-min (e.g. allowing only TLS 1.2)
  • tls-cipher
  • tls-crypt (as an alternative to tls-auth)
  • ncp-ciphers
  • ecdh-curve
  • compress (selection of the desired compression algorithm, e.g. lz4-v2)
  • explicit-exit-notify 1 (when using UDP)

Is there anything planned? Also OpenVPN running as unpriviledged user would be superb :)

@fichtner fichtner self-assigned this Oct 20, 2018
@fichtner fichtner added the feature Adding new functionality label Oct 20, 2018
@fichtner fichtner added this to the 19.1 milestone Oct 20, 2018
@fichtner
Copy link
Member

I’ll work on this as time permits.

@imidoriya
Copy link

The client export also includes "--comp-lzo" which has been depreciated. The new method is "--compress [algorithm]".

@ky41083
Copy link

ky41083 commented Dec 20, 2018

+1 for this. Please ;-)

Security wise, these are very good controls to have. Some do not have a good way of implementing using the free form advanced settings box. Good as in, fully included in config backups / restores, or OpenVPN client config exports.

@stultitiophobia
Copy link

Should the TLA-AUTH feature be replaced by TLS-CRYPT or be choosable as an alternative ?
i need this feature also very desperately, so i perhaps community could help on this (if desired) ?

@ky41083
Copy link

ky41083 commented Jan 7, 2019

tls-auth and tls-crypt should coexist as selectable options. One does not deprecate the other. You can only use one of them at a time. If nothing else, they should both remain as options for backwards compatibility with pre-existing setups.

@fichtner fichtner modified the milestones: 19.1, 19.7 Jan 20, 2019
@fichtner
Copy link
Member

@AdSchellevis maybe you have incentive to work on this earlier, for now I'll have to push to 19.7

@AdSchellevis
Copy link
Member

@fichtner I have no plans for this at the moment, move further is certainly fine.

@Bytechanger
Copy link

Hello,
I also need tls-crypt option for more security.
At this time I run my openvpn-server on my raspberry!

@Keltere
Copy link

Keltere commented Jun 13, 2019

+1 on tls-crypt, without it it's really a pain

@fichtner fichtner modified the milestones: 19.7, 20.1 Jul 1, 2019
@fichtner fichtner modified the milestones: 20.1, 20.7 Jan 24, 2020
@galvanopus
Copy link

It would be nice to have this feature implemented.

Btw, there is a workaround:

  1. Disable TLS authentication.
  2. Paste the following into Advanced section:
<tls-crypt>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
key data here
-----END OpenVPN Static key V1-----
</tls-crypt>

@hugosxm
Copy link

hugosxm commented Jul 25, 2020

Hi, we are planning to migrate all our pfsense boxes ( 30 boxes aprox. ) to opnsense because we found opnsense better but this "missing" ui feature for openvpn is quite annoying we have to say, would be really appreciated if this is done in the next release

Please think about those one too :

  • UDP Fast I/O
  • Send/Receive Buffer size selection
  • Gateway creation both / IPV4 / IPV6
  • tls key usage mode => auth / auth + encrypt
  • inter client communication
  • push compression

We can provide openvpn conf files to help

sorry for my english !

@fichtner fichtner modified the milestones: 20.7, 21.1 Jul 30, 2020
@fichtner fichtner modified the milestones: 21.1, Community Jan 10, 2021
@FingerlessGlov3s
Copy link
Contributor

FingerlessGlov3s commented Mar 26, 2021

Move NCP in to its own feature request, since this issue contains many features.
#4871

@khicks
Copy link

khicks commented Apr 5, 2021

This is a big requirement for folks looking for a drop-in replacement for pfSense. Administrators of multi-user environments have already distributed OpenVPN configs, and having no option for tls-crypt means they're going to have to shoehorn it in or redistribute configs.

No GUI option for tls-crypt would be acceptable if the Advanced config field wasn't being deprecated. Without it, administrators wanting improved security will have to dig into the file system, which is far from ideal. I really hope that the OpenVPN GUI configuration tool will have all of the common options before the Advanced field gets taken away.

@stultitiophobia
Copy link

stultitiophobia commented Apr 5, 2021

I approached this problem with this workaround so far:
https://github.com/trendchiller/OPNsense/commit/5f044ce6bc8d31f557e47f9189475409628a3849
The goal was backward compatibility and improved security.
I wanted to commit when the exporters were ready, but so I'll stop work until we have a status ;-)

@beren12
Copy link

beren12 commented Jul 7, 2021

This is a big requirement for folks looking for a drop-in replacement for pfSense. Administrators of multi-user environments have already distributed OpenVPN configs, and having no option for tls-crypt means they're going to have to shoehorn it in or redistribute configs.

No GUI option for tls-crypt would be acceptable if the Advanced config field wasn't being deprecated. Without it, administrators wanting improved security will have to dig into the file system, which is far from ideal. I really hope that the OpenVPN GUI configuration tool will have all of the common options before the Advanced field gets taken away.

The problem is advanced options will never be 100% covered from the GUI, and it's far far better security to see the advanced config then to have it hidden in a file nobody ever knows to check.

The advanced options should be available some way even if it's hidden by default.

I agree the goal should be to cover almost all options from the GUI, but that doesn't mean advanced should ever go away. Right now I use it for persistent IP leases which would be nice to have set from the GUI but how many other people care about that option?

@stultitiophobia
Copy link

perhaps it could be an idea to habe a checkbox in system-settings to "enable. advances settings" which "unhides" the advanced config boxes ?
so they could be hidden by default and enabled by users which are experienced ?

@ITJamie
Copy link

ITJamie commented Apr 2, 2022

right now the ovpn file type export option has a bug. it comes down as filename.ovpn.txt on ios/safari due to the headers. this means its not easy to import into openvpn apps on ios.

some quick searching appears that the headers need to be more specific to the filetype during the download. eg

    'Content-Type' => 'text/ovpn',
    'Content-Length' => filesize(storage_path('file.ovpn')),
    'Content-Disposition' => 'attachment; filename="'.$formname->name.'.ovpn"'

@AdSchellevis
Copy link
Member

better open new issues after 23.7 is released aiming the new Instances option

@fichtner fichtner removed this from the Community milestone Jun 28, 2023
@fichtner fichtner removed the feature Adding new functionality label Jun 28, 2023
@fichtner fichtner removed their assignment Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests