Do not create nat on rules for opt interfaces with a gateway.

This commit is contained in:
Seth Mos 2007-05-05 20:24:28 +00:00
parent 4bc3ea9362
commit d12e0997b0

View File

@ -716,7 +716,7 @@ function filter_nat_rules_generate() {
update_filter_reload_status("Creating outbound rules (opt{$i})");
$optcfg = $config['interfaces']['opt' . $i];
if (isset($optcfg['enable']) && !$optcfg['bridge']) {
if ((isset ($optcfg['enable'])) && (!$optcfg['bridge']) && (interface_has_gateway("$opt_interface"))) {
$optsa = gen_subnet($optcfg['ipaddr'], $optcfg['subnet']);
/* create outbound nat entries for primary wan */
@ -3272,4 +3272,4 @@ function return_vpn_subnet($adr) {
}
?>
?>