Revision cf407317
Added by Scott Ullrich over 20 years ago
etc/inc/filter.inc | ||
---|---|---|
710 | 710 |
$wanif = get_real_wan_interface(); |
711 | 711 |
|
712 | 712 |
$lanif = $config['interfaces']['lan']['if']; |
713 |
$lanip = $config['interfaces']['lan']['ipaddr']; |
|
713 | 714 |
|
714 | 715 |
$lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']); |
715 | 716 |
|
... | ... | |
870 | 871 |
|
871 | 872 |
$squid_installed = run_command_return_string("/bin/ls /var/db/pkg/ | grep squid"); |
872 | 873 |
if ($squid_installed <> "") { |
873 |
$natrules .= "rdr on " . $lanif . " inet proto tcp from any to any port www -> 127.0.0.1 port 3128\n";
|
|
874 |
$natrules .= "rdr on " . $lanif . " inet proto tcp from any to !{$lanip} port www -> 127.0.0.1 port 3128\n";
|
|
874 | 875 |
} |
875 | 876 |
|
876 | 877 |
return $natrules; |
Also available in: Unified diff
do not forward requests for the lanip to squid