Project

General

Profile

Actions

Bug #14140

closed

OpenVPN Custom Options removes newline before push statements

Added by Nick Maludy about 1 year ago. Updated about 1 year ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Release Notes:
Default
Affected Plus Version:
23.01
Affected Architecture:

Description

Hello,

I'm setting up an OpenVPN server and need to pass in some additional option in two places:

1. VPN -> OpenVPN -> Server -> <edit server> -> Advanced Configuration -> Custom options
2. VPN -> OpenVPN -> Client Specific Overrides -> <edit override> -> Client Settings -> Advanced

In both of these cases, i need to add a statement similar to:

push "route-gateway 192.168.x.1"

If you do this and save the server, it removes the newline before and after that statement.
Example: if i put the following in Client Specific Overrides:

ifconfig-push 192.168.x.3 255.255.255.0
push "route-gateway 192.168.x.1"

When i save, go away from the page and edit again, it looks like:

ifconfig-push 192.168.x.3 255.255.255.0push "route-gateway 192.168.x.1"

Oddly enough this same thing happens if i make changes to the server, without touching the client specific overrides, it seems to rewrite the overrides and removes the newlines.

This can be verified by looking at the files on the file system:
- /var/etc/openvpn/server1/csc/<client specific override name>

Let me know if there is other help or steps i can provide to aide in debugging.

So far it's 100% reproducible.


Files

Screenshot from 2023-03-25 08-39-35.png (23.7 KB) Screenshot from 2023-03-25 08-39-35.png Server settings Chris W, 03/25/2023 09:42 AM
Screenshot from 2023-03-25 08-38-22.png (24.2 KB) Screenshot from 2023-03-25 08-38-22.png Client Specific Overrides before saving Chris W, 03/25/2023 09:42 AM
Screenshot from 2023-03-25 08-38-38.png (24 KB) Screenshot from 2023-03-25 08-38-38.png Client Specific Overrides after saving Chris W, 03/25/2023 09:42 AM
Actions

Also available in: Atom PDF