Revision 60e440fa
Added by Scott Ullrich over 20 years ago
etc/inc/filter.inc | ||
---|---|---|
933 | 933 |
else |
934 | 934 |
$log = ""; |
935 | 935 |
|
936 |
/* if carp is defined, lets pass the traffic */ |
|
937 |
if(is_carp_defined() == true) { |
|
938 |
$ipfrules .= "pass on " . $lanif . " proto carp from $lanif:network to 224.0.0.18 keep state (no-sync) label \"carp\"\n"; |
|
939 |
$ipfrules .= "pass on " . $wanif . " proto carp from $wanif:network to 224.0.0.18 keep state (no-sync) label \"carp\"\n"; |
|
940 |
} |
|
941 |
|
|
942 | 936 |
/* if squid is installed, lets install its rule */ |
943 | 937 |
$squid_installed = run_command_return_string("/bin/ls /var/db/pkg/ | grep squid"); |
944 | 938 |
if ($squid_installed <> "") { |
Also available in: Unified diff
Move carp rules to carp_rules.sh (in the package) and use the new package framework.