public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCHv2] suricata: Use device ppp0 if PPPoE dialin is used.
Date: Wed, 24 Apr 2019 11:53:18 +0100	[thread overview]
Message-ID: <5CF6BC59-B5D7-4BEC-8DEC-2B063A77248A@ipfire.org> (raw)
In-Reply-To: <20190423192753.5524-1-stefan.schantl@ipfire.org>

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

Thanks. I have merged this yesterday evening and we will rebuild the update for this.

> On 23 Apr 2019, at 20:27, Stefan Schantl <stefan.schantl(a)ipfire.org> wrote:
> 
> Fixes #12058.
> 
> Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
> ---
> src/initscripts/system/suricata | 16 +++++++++++++---
> 1 file changed, 13 insertions(+), 3 deletions(-)
> 
> diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata
> index 16548753e..ecd693054 100644
> --- a/src/initscripts/system/suricata
> +++ b/src/initscripts/system/suricata
> @@ -18,6 +18,7 @@
> PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin; export PATH
> 
> eval $(/usr/local/bin/readhash /var/ipfire/suricata/settings)
> +eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
> 
> # Name of the firewall chain.
> FW_CHAIN="IPS"
> @@ -65,9 +66,18 @@ function generate_fw_rules {
> 
> 		# Check if the IDS is enabled for this network zone.
> 		if [ "${!enable_ids_zone}" == "on" ]; then
> -			# Generate name of the network interface.
> -			network_device=$zone
> -			network_device+="0"
> +			# Check if the current processed zone is "red" and the configured type is PPPoE dialin.
> +			if [ "$zone" == "red" ] && [ "$RED_TYPE" == "PPPOE" ]; then
> +				# Set device name to ppp0.
> +				network_device="ppp0"
> +			else
> +				# Generate variable name which contains the device name.
> +				zone_name="$zone_upper"
> +				zone_name+="_DEV"
> +
> +				# Grab device name.
> +				network_device=${!zone_name}
> +			fi
> 
> 			# Assign NFQ_OPTS
> 			NFQ_OPTIONS=$NFQ_OPTS
> -- 
> 2.20.1
> 


      reply	other threads:[~2019-04-24 10:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-23 19:27 Stefan Schantl
2019-04-24 10:53 ` Michael Tremer [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=5CF6BC59-B5D7-4BEC-8DEC-2B063A77248A@ipfire.org \
    --to=michael.tremer@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