mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
openvpn: Apply static routes when N2N connection comes up
Fixes: #10968 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -926,6 +926,7 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
|
||||
print SERVERCONF "ifconfig $ovsubnet.1 $ovsubnet.2\n";
|
||||
print SERVERCONF "# Client Gateway Network\n";
|
||||
print SERVERCONF "route $remsubnet[0] $remsubnet[1]\n";
|
||||
print SERVERCONF "up /etc/init.d/static-routes start\n";
|
||||
print SERVERCONF "# tun Device\n";
|
||||
print SERVERCONF "dev tun\n";
|
||||
print SERVERCONF "#Logfile for statistics\n";
|
||||
|
||||
Reference in New Issue
Block a user