Project

General

Profile

« Previous | Next » 

Revision e7abb418

Added by Ermal Luçi over 17 years ago

Remove a duplicated entry slipped in accidentally.
Remove uneeded check on default policy.

View differences:

etc/inc/filter.inc
2244 2244
	$optcfg = array();
2245 2245
	generate_optcfg_array($optcfg);
2246 2246

  
2247
	if (is_package_installed('squid') && file_exists('/usr/local/pkg/squid.inc')) {
2248
		require_once('squid.inc');
2249
		$ipfrules .= squid_generate_rules('filter');
2250
	}
2251

  
2252 2247
	if (is_package_installed('clamav') && file_exists('/usr/local/pkg/clamav.inc')) {
2253 2248
		require_once('clamav.inc');
2254 2249
		$ipfrules .= clamav_generate_rules('filter');
......
2455 2450

  
2456 2451
EOD;
2457 2452

  
2458
if (!is_array($config['shaper']['queue']) && count($config['shaper']['queue']) < 1) {
2459

  
2460 2453
	$ipfrules .= <<<EOD
2461 2454

  
2462 2455
# let out anything from the firewall host itself and decrypted IPsec traffic
......
2466 2459

  
2467 2460
EOD;
2468 2461

  
2469
}
2470

  
2471 2462
	$ipfrules .= create_firewall_outgoing_rules_to_itself();
2472 2463

  
2473 2464
	if($config['interfaces']['wan']['ipaddr'] == "pppoe")

Also available in: Unified diff