Project

General

Profile

Bug #3717 ยป filter.inc.patch

Marc Posch, 06/22/2014 04:55 PM

View differences:

filter.inc 2014-06-21 02:20:04.000000000 +0200
2226 2226

  
2227 2227
	/* set the gateway interface */
2228 2228
	update_filter_reload_status(sprintf(gettext("Setting up pass/block rules %s"), $rule['descr']));
2229 2229

  
2230 2230
	/* do not process reply-to for gateway'd rules */
2231
	if($rule['gateway'] == "" && $aline['direction'] <> "" && interface_has_gateway($rule['interface']) && !isset($config['system']['disablereplyto']) && !isset($rule['disablereplyto']) && $type != "match") {
2231
	if($rule['gateway'] == "" && $aline['direction'] <> "" && (interface_has_gateway($rule['interface']) || interface_has_gatewayv6($rule['interface'])) && !isset($config['system']['disablereplyto']) && !isset($rule['disablereplyto']) && $type != "match") {
2232 2232
		if ($rule['ipprotocol'] == "inet6") {
2233 2233
			$rg = get_interface_gateway_v6($rule['interface']);
2234 2234
			if (is_ipaddrv6($rg))
2235 2235
				$aline['reply'] = "reply-to ( {$ifcfg['ifv6']} {$rg} ) ";
2236 2236
			else if ($rule['interface'] <> "pptp")
    (1-1/1)