diff options
author | jim-p <jimp@pfsense.org> | 2016-07-11 12:04:36 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-07-11 12:44:48 -0400 |
commit | 2cc19f46b0dd2ce1604ef6a890f3222857c98744 (patch) | |
tree | 57bc2c22d31dd17f43345bc8dab44cb16f9257ae /src | |
parent | b5baa9e7a17266e794514747e7046eba6acb1db7 (diff) | |
download | pfsense-2cc19f46b0dd2ce1604ef6a890f3222857c98744.zip pfsense-2cc19f46b0dd2ce1604ef6a890f3222857c98744.tar.gz |
Align GIF link options with those currently supported by the base OS. Ticket #6587
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/interfaces.inc | 6 | ||||
-rw-r--r-- | src/usr/local/www/interfaces_gif_edit.php | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index d065bcb..fc8bbc0 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -987,12 +987,12 @@ function interface_gif_configure(&$gif, $gifkey = "") { } else { mwexec("/sbin/ifconfig {$gifif} " . escapeshellarg($gif['tunnel-local-addr']) . " " . escapeshellarg($gif['tunnel-remote-addr']) . " netmask " . gen_subnet_mask($gif['tunnel-remote-net'])); } - if (isset($gif['link0'])) { - pfSense_interface_flags($gifif, IFF_LINK0); - } if (isset($gif['link1'])) { pfSense_interface_flags($gifif, IFF_LINK1); } + if (isset($gif['link2'])) { + pfSense_interface_flags($gifif, IFF_LINK2); + } if ($gifif) { interfaces_bring_up($gifif); $gifmtu = ""; diff --git a/src/usr/local/www/interfaces_gif_edit.php b/src/usr/local/www/interfaces_gif_edit.php index 53c5219..1eb0999 100644 --- a/src/usr/local/www/interfaces_gif_edit.php +++ b/src/usr/local/www/interfaces_gif_edit.php @@ -86,7 +86,7 @@ if (isset($id) && $a_gifs[$id]) { $pconfig['tunnel-local-addr'] = $a_gifs[$id]['tunnel-local-addr']; $pconfig['tunnel-remote-addr'] = $a_gifs[$id]['tunnel-remote-addr']; $pconfig['link1'] = isset($a_gifs[$id]['link1']); - $pconfig['link0'] = isset($a_gifs[$id]['link0']); + $pconfig['link2'] = isset($a_gifs[$id]['link2']); $pconfig['descr'] = $a_gifs[$id]['descr']; } @@ -154,12 +154,12 @@ if ($_POST) { $gif['tunnel-remote-net'] = $_POST['tunnel-remote-net']; $gif['remote-addr'] = $_POST['remote-addr']; $gif['descr'] = $_POST['descr']; - if (isset($_POST['link0'])) { - $gif['link0'] = ''; - } if (isset($_POST['link1'])) { $gif['link1'] = ''; } + if (isset($_POST['link2'])) { + $gif['link2'] = ''; + } $gif['gifif'] = $_POST['gifif']; $gif['gifif'] = interface_gif_configure($gif); @@ -241,19 +241,19 @@ $section->addInput(new Form_Select( ))->setHelp('The subnet is used for determining the network that is tunnelled.'); $section->addInput(new Form_Checkbox( - 'link0', - 'Route Caching', - 'Specify if route caching can be enabled. (Be careful with these settings on dynamic networks.)', - $pconfig['link0'] -)); - -$section->addInput(new Form_Checkbox( 'link1', 'ECN friendly behavior', 'ECN friendly behavior violates RFC2893. This should be used in mutual agreement with the peer. ', $pconfig['link1'] )); +$section->addInput(new Form_Checkbox( + 'link2', + 'Outer Source Filtering', + 'Disable automatic filtering of the outer GIF source which ensures a match with the configured remote peer. When disabled, martian and inbound filtering is not performed which allows asymmetric routing of the outer traffic.', + $pconfig['link2'] +)); + $section->addInput(new Form_Input( 'descr', 'Description', |