From e538fc18448bc2444ea3dce995aa90b717459043 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 18 Mar 2014 15:09:45 -0300 Subject: Automatic outbound NAT rules skip openvpn interfaces, lets skip them when creating the first set of manual rules too. It fixes #3528 --- usr/local/www/firewall_nat_out.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr/local/www') 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) { -- cgit v1.1