public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] optionsfw.cgi: Add default settings for newly added options.
Date: Sat, 05 Mar 2022 19:32:27 +0000	[thread overview]
Message-ID: <0db5f211-f61e-642c-99d7-b82550f0eb18@ipfire.org> (raw)
In-Reply-To: <20220305181339.4389-1-stefan.schantl@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1209 bytes --]

Looks good to me.

Also, fixes: #12791

Reviewed-by: Peter Müller <peter.mueller(a)ipfire.org>

> 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(a)ipfire.org>
> ---
>  html/cgi-bin/optionsfw.cgi | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi
> index 5611b71b7..fbff67b2f 100644
> --- a/html/cgi-bin/optionsfw.cgi
> +++ b/html/cgi-bin/optionsfw.cgi
> @@ -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'} = '';

      reply	other threads:[~2022-03-05 19:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-05 18:13 Stefan Schantl
2022-03-05 19:32 ` Peter Müller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0db5f211-f61e-642c-99d7-b82550f0eb18@ipfire.org \
    --to=peter.mueller@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox