mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
optionsfw.cgi: Add default settings for newly added options.
If no settings for those features can be obtained from the settings
file, set them to the following defaults.
* DROPSPOOFEDMARTIAN -> on (yes)
* DROPHOSTILE -> off (no - because only fresh installed systems should
do this)
* LOGDROPCTINVALID -> on (yes)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
de686e49e2
commit
e895c2de72
@@ -88,6 +88,15 @@ if (!$settings{'MASQUERADE_ORANGE'}) {
|
||||
if (!$settings{'MASQUERADE_BLUE'}) {
|
||||
$settings{'MASQUERADE_BLUE'} = 'on';
|
||||
}
|
||||
if (!$settings{'DROPSPOOFEDMARTIAN'}) {
|
||||
$settings{'DROPSPOOFEDMARTIAN'} = 'on';
|
||||
}
|
||||
if (!$settings{'DROPHOSTILE'}) {
|
||||
$settings{'DROPHOSTILE'} = 'off';
|
||||
}
|
||||
if (!$settings{'LOGDROPCTINVALID'}) {
|
||||
$settings{'LOGDROPCTINVALID'} = 'on';
|
||||
}
|
||||
|
||||
$checked{'DROPNEWNOTSYN'}{'off'} = '';
|
||||
$checked{'DROPNEWNOTSYN'}{'on'} = '';
|
||||
|
||||
Reference in New Issue
Block a user