From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH 1/4] firewall: Drop support for blocking P2P protocols.
Date: Mon, 14 Feb 2022 21:11:38 +0000 [thread overview]
Message-ID: <413dfa91-760f-32a8-85c6-d6cab22d79d0@ipfire.org> (raw)
In-Reply-To: <20220214190307.4086-1-stefan.schantl@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 2100 bytes --]
Acked-by: Peter Müller <peter.mueller(a)ipfire.org>
> The main P2P (peer-to-peer) aera has passed for several year now, so
> this kind of feature is realy out-dated.
>
> The feature only supports a handfull of P2P protocols (mostly unencrypted)
> for applications, which have been superseeded by various other
> applications and protocols.
>
> So, this fairly is not longer required and safely can be dropped.
>
> Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
> ---
> config/firewall/rules.pl | 23 -----------------------
> 1 file changed, 23 deletions(-)
>
> diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl
> index 9d280045a..fea6874a4 100644
> --- a/config/firewall/rules.pl
> +++ b/config/firewall/rules.pl
> @@ -70,12 +70,9 @@ my %locationsettings = (
> "LOCATIONBLOCK_ENABLED" => "off"
> );
>
> -my @p2ps=();
> -
> my $configfwdfw = "${General::swroot}/firewall/config";
> my $configinput = "${General::swroot}/firewall/input";
> my $configoutgoing = "${General::swroot}/firewall/outgoing";
> -my $p2pfile = "${General::swroot}/firewall/p2protocols";
> my $locationfile = "${General::swroot}/firewall/locationblock";
> my $configgrp = "${General::swroot}/fwhosts/customgroups";
> my $netsettings = "${General::swroot}/ethernet/settings";
> @@ -125,9 +122,6 @@ sub main {
> &buildrules(\%configfwdfw);
> }
>
> - # Load P2P block rules.
> - &p2pblock();
> -
> # Load Location block rules.
> &locationblock();
>
> @@ -620,23 +614,6 @@ sub time_convert_to_minutes {
> return ($hrs * 60) + $min;
> }
>
> -sub p2pblock {
> - open(FILE, "<$p2pfile") or die "Unable to read $p2pfile";
> - my @protocols = ();
> - foreach my $p2pentry (<FILE>) {
> - my @p2pline = split(/\;/, $p2pentry);
> - next unless ($p2pline[2] eq "off");
> -
> - push(@protocols, "--$p2pline[1]");
> - }
> - close(FILE);
> -
> - run("$IPTABLES -F P2PBLOCK");
> - if (@protocols) {
> - run("$IPTABLES -A P2PBLOCK -m ipp2p @protocols -j DROP");
> - }
> -}
> -
> sub locationblock {
> # Flush iptables chain.
> run("$IPTABLES -F LOCATIONBLOCK");
next prev parent reply other threads:[~2022-02-14 21:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-14 19:03 Stefan Schantl
2022-02-14 19:03 ` [PATCH 2/4] configroot: Drop config file for p2protocols Stefan Schantl
2022-02-14 21:11 ` Peter Müller
2022-02-15 12:33 ` Michael Tremer
2022-02-14 19:03 ` [PATCH 3/4] p2p-block.cgi: Drop CGI Stefan Schantl
2022-02-14 21:12 ` Peter Müller
2022-02-15 12:33 ` Michael Tremer
2022-02-14 19:03 ` [PATCH 4/4] firewall.menu: Drop entry for P2P-Block Stefan Schantl
2022-02-14 21:12 ` Peter Müller
2022-02-15 12:32 ` Michael Tremer
2022-02-14 21:11 ` Peter Müller [this message]
2022-02-15 12:33 ` [PATCH 1/4] firewall: Drop support for blocking P2P protocols Michael Tremer
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=413dfa91-760f-32a8-85c6-d6cab22d79d0@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