1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-20 10:17:16 +01:00

see #2074 on FreeBSD ifconfig does not understand parameter carpdev

This commit is contained in:
Vadim Kurland 2011-02-13 18:35:31 -08:00
parent 31bd33cfea
commit 9ae141c3ae
4 changed files with 31 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2011-02-13 vadim <vadim@netcitadel.com>
* configlets/freebsd/carp_interface: see #2074 On FreeBSD ifconfig
does not understand parameter carpdev
* PolicyCompiler_pf.cpp (checkForShadowingPlatformSpecific): see
#1867 "PF: rule with non-terminating action Tag shadows other
rules below it". Since action Tag is non-terminating, rules with

View File

@ -397,12 +397,14 @@ void OSConfigurator_freebsd::interfaceConfigLineCARP(Interface *iface,
FWObject *failover_group)
{
FWOptions* options = fw->getOptionsObject();
QString configlet_name = "carp_interface";
if (options->getBool("generate_rc_conf_file"))
{
Configlet configlet(fw, "freebsd", "rc_conf_carp_interface");
interfaceConfigLineCARPInternal(iface, failover_group, &configlet);
} else
OSConfigurator_bsd::interfaceConfigLineCARP(iface, failover_group);
configlet_name = "rc_conf_carp_interface";
}
Configlet configlet(fw, "freebsd", configlet_name);
interfaceConfigLineCARPInternal(iface, failover_group, &configlet);
}
void OSConfigurator_freebsd::summaryConfigLinePfsync(bool have_pfsync)

View File

@ -0,0 +1,19 @@
## -*- mode: shell-script; -*-
##
## Lines that start with "##" will be removed before this code is
## added to the generated script. Regular shell comments can be added
## using single "#", these will appear in the script.
##
##
## CARP
## ifconfig carp-interface [advbase n] [advskew n] [carpdev iface]
## [pass passphrase] [state state] [vhid host-id]
##
## for pfsync and CARP see http://www.kernel-panic.it/openbsd/carp/
## "Redundant firewalls with OpenBSD, CARP and pfsync"
##
## Unlike in OpenBSD, in FreeBSD ifconfig does not understand carpdev parameter
$IFCONFIG {{$carp_interface}} vhid {{$vhid}} pass {{$carp_password}} {{if have_advbase}} advbase {{$advbase}}{{endif}} {{if have_advskew}} advskew {{$advskew}}{{endif}}

View File

@ -15,8 +15,10 @@
## here is how to configure CARP interfaces in rc.conf
##
## http://blas.phemo.us/articles/2007/04/04/setting-up-and-configuring-carp-interfaces-on-freebsd
##
## Unlike in OpenBSD, in FreeBSD ifconfig does not understand carpdev parameter
ifconfig_{{$carp_interface}}="vhid {{$vhid}} pass {{$carp_password}} {{if have_advbase}} advbase {{$advbase}}{{endif}} {{if have_advskew}} advskew {{$advskew}}{{endif}} {{if have_base_inetrface}} carpdev {{$base_inetrface}}{{endif}}"
ifconfig_{{$carp_interface}}="vhid {{$vhid}} pass {{$carp_password}} {{if have_advbase}} advbase {{$advbase}}{{endif}} {{if have_advskew}} advskew {{$advskew}}{{endif}}"