From cf4073174d39909f8de58e9d82a5399ede2cb842 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 26 Feb 2005 04:08:21 +0000 Subject: do not forward requests for the lanip to squid --- etc/inc/filter.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 0cca0a7..fb570f3 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -710,6 +710,7 @@ function filter_nat_rules_generate() { $wanif = get_real_wan_interface(); $lanif = $config['interfaces']['lan']['if']; + $lanip = $config['interfaces']['lan']['ipaddr']; $lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']); @@ -870,7 +871,7 @@ EOD; $squid_installed = run_command_return_string("/bin/ls /var/db/pkg/ | grep squid"); if ($squid_installed <> "") { - $natrules .= "rdr on " . $lanif . " inet proto tcp from any to any port www -> 127.0.0.1 port 3128\n"; + $natrules .= "rdr on " . $lanif . " inet proto tcp from any to !{$lanip} port www -> 127.0.0.1 port 3128\n"; } return $natrules; -- cgit v1.1