diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-10-29 07:05:30 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-10-29 07:05:44 -0200 |
commit | bb6291e0204ffe2828fe9c9425bdae9c8541fe54 (patch) | |
tree | 217b898c9ddfafc2f037c57ca32d2406df8e40a5 /usr | |
parent | d3ad6cf012e51d820c03e08f05e56986c5682f1e (diff) | |
download | pfsense-bb6291e0204ffe2828fe9c9425bdae9c8541fe54.zip pfsense-bb6291e0204ffe2828fe9c9425bdae9c8541fe54.tar.gz |
Define dynamic gateway for GRE interfaces and do not user to define IP address to the interface. Fixes #3280
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 0627e32..f159cd6 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -404,6 +404,11 @@ if ($_POST['apply']) { } else if ($_POST) { unset($input_errors); + + if (substr($wancfg['if'], 0, 3) == "gre" && + ($_POST['type'] != "none" || $_POST['type'] != "none")) + $input_errors[] = gettext("You cannot set an IPv4 or IPv6 address to a GRE interface"); + $pconfig = $_POST; if (is_numeric("0x" . $_POST['track6-prefix-id--hex'])) $pconfig['track6-prefix-id'] = intval($_POST['track6-prefix-id--hex'], 16); |