IPsec: Use left/rightprotoport in GRE mode
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Dec 2018 11:21:29 +0000 (11:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Feb 2019 18:20:36 +0000 (18:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/vpnmain.cgi

index c29c5d5..b65838d 100644 (file)
@@ -301,7 +301,7 @@ sub writeipsecfiles {
                print CONF "\tleft=$localside\n";
 
                if ($interface_mode eq "gre") {
-                       print CONF "\tleftsubnet=%dynamic[gre]\n";
+                       print CONF "\tleftprotoport=gre\n";
                } elsif ($interface_mode eq "vti") {
                        print CONF "\tleftsubnet=0.0.0.0/0\n";
                } else {
@@ -314,7 +314,7 @@ sub writeipsecfiles {
 
                if ($lconfighash{$key}[3] eq 'net') {
                        if ($interface_mode eq "gre") {
-                               print CONF "\trightsubnet=%dynamic[gre]\n";
+                               print CONF "\trightprotoport=gre\n";
                        } elsif ($interface_mode eq "vti") {
                                print CONF "\trightsubnet=0.0.0.0/0\n";
                        } else {