mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 05:22:59 +02:00
BUG10902: Add statusfile line when editing an ovpn n2n connection
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
a9efe3bd68
commit
35a21a254d
@@ -1029,6 +1029,9 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
|
||||
print CLIENTCONF "up \"/etc/init.d/static-routes start\"\n";
|
||||
print CLIENTCONF "# tun Device\n";
|
||||
print CLIENTCONF "dev tun\n";
|
||||
print CLIENTCONF "#Logfile for statistics\n";
|
||||
print CLIENTCONF "status-version 1\n";
|
||||
print CLIENTCONF "status /var/run/openvpn/$cgiparams{'NAME'}-n2n 10\n";
|
||||
print CLIENTCONF "# Port and Protokol\n";
|
||||
print CLIENTCONF "port $cgiparams{'DEST_PORT'}\n";
|
||||
|
||||
@@ -2140,6 +2143,9 @@ if ($confighash{$cgiparams{'KEY'}}[3] eq 'net'){
|
||||
print CLIENTCONF "route $remsubnet[0] $remsubnet[1]\n";
|
||||
print CLIENTCONF "# tun Device\n";
|
||||
print CLIENTCONF "dev tun\n";
|
||||
print CLIENTCONF "#Logfile for statistics\n";
|
||||
print CLIENTCONF "status-version 1\n";
|
||||
print CLIENTCONF "status /var/run/openvpn/$cgiparams{'NAME'}-n2n 10\n";
|
||||
print CLIENTCONF "# Port and Protokoll\n";
|
||||
print CLIENTCONF "port $confighash{$cgiparams{'KEY'}}[29]\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user