Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Manually customize the OpenVPN server configuration
« previous
next »
Print
Pages: [
1
]
Author
Topic: Manually customize the OpenVPN server configuration (Read 206 times)
cygofi
Newbie
Posts: 3
Karma: 0
Manually customize the OpenVPN server configuration
«
on:
May 04, 2024, 02:18:40 pm »
Is it possible to manually customize the configuration of an OpenVPN server instance?
Gladly also in a custom file via SSH. I would like to add additional options.
I have tried to edit the file
/var/etc/openvpn/instance-<SERVER_ID>.conf
, but this is overwritten every time the OpenVPN server is restarted.
Under
Servers [legacy]
there was still the “Advanced” field where you could add your own options, which unfortunately no longer exists under the new “Instances”. I want to set up a future-oriented system and I assume that the “legacy” menus will no longer be available in the future.
Why do I have to edit the configuration manually?
My plan is to use the OpenVPN server plugin
openvpn-auth-oauth2
(
https://github.com/jkroepke/openvpn-auth-oauth2
) for OAuth2 authentication. For this, the options
management-client-auth
and
auth-user-pass-optional
must also be set for the OpenVPN server. However, the option
auth-user-pass-verify
must not be set. Depending on the configuration, other options may also need to be set.
Of course, it would be great if the OpenVPN plugin
openvpn-auth-oauth2
could be integrated directly into OPNsese in the future, but this is certainly nothing that can be realized in the short term.
«
Last Edit: May 04, 2024, 06:11:36 pm by cygofi
»
Logged
maclinuxfree
Jr. Member
Posts: 52
Karma: 2
Re: Manually customize the OpenVPN server configuration
«
Reply #1 on:
May 08, 2024, 03:43:40 pm »
Hello,
I need custom options as well.
tun-mtu in my case.
Where can I set it?
Logged
maclinuxfree
Jr. Member
Posts: 52
Karma: 2
Re: Manually customize the OpenVPN server configuration
«
Reply #2 on:
May 08, 2024, 05:31:52 pm »
I rolled back to OpenVPN legacy for now.
«
Last Edit: May 09, 2024, 09:59:23 pm by maclinuxfree
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Manually customize the OpenVPN server configuration