mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only setup squid redirect if the process is running
This commit is contained in:
parent
60547911be
commit
55fa560bc1
@ -1127,7 +1127,8 @@ EOD;
|
||||
}
|
||||
|
||||
if (is_package_installed("squid") == 1)
|
||||
$natrules .= "rdr on " . $lanif . " inet proto tcp from any to !{$lanip} port www -> 127.0.0.1 port 3128\n";
|
||||
if(is_process_running("squid"))
|
||||
$natrules .= "rdr on " . $lanif . " inet proto tcp from any to !{$lanip} port www -> 127.0.0.1 port 3128\n";
|
||||
|
||||
$natrules .= process_carp_nat_rules();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user