initial commit of file from CVS for smeserver-openvpn-routed on Thu 6 Mar 14:40:52 GMT 2025

This commit is contained in:
2025-03-06 14:40:52 +00:00
parent 08020c8369
commit 73d65d729e
38 changed files with 866 additions and 2 deletions

View File

@@ -0,0 +1 @@
AES-128-CBC

View File

@@ -0,0 +1 @@
SHA256

View File

@@ -0,0 +1 @@
1194

View File

@@ -0,0 +1 @@
public

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1,9 @@
{
my $openvpn = $DB->get('openvpn-routed') || $DB->new_record('openvpn-routed', {type => 'service'});
my $management = $openvpn->prop('ManagementPassword') || '';
return "" if ($management ne '');
# Generate a random password
$pass=`/usr/bin/openssl rand -base64 20 | tr -c -d '[:alnum:]'`;
$openvpn->set_prop('ManagementPassword',"$pass");
}