diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-03-18 15:09:45 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-03-18 15:09:45 -0300 |
commit | e538fc18448bc2444ea3dce995aa90b717459043 (patch) | |
tree | 4034b67d6f9ad860e99c8929c6536139664e2e39 | |
parent | 22889e9ee775c0bb5cda64b781e0c94bd8510f3e (diff) | |
download | pfsense-e538fc18448bc2444ea3dce995aa90b717459043.zip pfsense-e538fc18448bc2444ea3dce995aa90b717459043.tar.gz |
Automatic outbound NAT rules skip openvpn interfaces, lets skip them when creating the first set of manual rules too. It fixes #3528
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index 5d40aa5..4cbda7b 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -94,6 +94,8 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") { $ifdescrs = get_configured_interface_with_descr(); foreach($ifdescrs as $if => $ifdesc) { + if (substr(get_real_interface($if), 0, 4) == "ovpn") + continue; if (!interface_has_gateway($if)) continue; foreach ($ifdescrs as $if2 => $ifdesc2) { |