ipsec: Don't allow to select VTI in transport mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-01-21 15:32:08 +00:00
parent 605c391aaf
commit 7e25093d42
12 changed files with 23 additions and 0 deletions

View File

@@ -1458,6 +1458,11 @@ END
goto VPNCONF_ERROR;
}
if (($cgiparams{'INTERFACE_MODE'} eq "vti") && ($cgiparams{'MODE'} eq "transport")) {
$errormessage = $Lang::tr{'transport mode does not support vti'};
goto VPNCONF_ERROR;
}
if (($cgiparams{'INTERFACE_MODE'} ne "") && !&Network::check_subnet($cgiparams{'INTERFACE_ADDRESS'})) {
$errormessage = $Lang::tr{'invalid input for interface address'};
goto VPNCONF_ERROR;