From: Arne Fitzenreiter <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 5b0eca95280d4eca42d54b007f4fd41c33a82152
Date: Sat, 12 Feb 2022 18:03:10 +0000 [thread overview]
Message-ID: <4JwyyR0rZ7z2xgg@people01.haj.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2167 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 5b0eca95280d4eca42d54b007f4fd41c33a82152 (commit)
from 20e71c0eb029bf5e549dcd9970a64d0a53bf62bf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5b0eca95280d4eca42d54b007f4fd41c33a82152
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Feb 12 18:00:09 2022 +0000
firewall: initialize IFACE if it is empty
at first boot there is no IFACE set which result in iptables
errors at boot.
fixes #12767
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
src/initscripts/system/firewall | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Difference in files:
diff --git a/src/initscripts/system/firewall b/src/initscripts/system/firewall
index f35b6b6e1..577c10c89 100644
--- a/src/initscripts/system/firewall
+++ b/src/initscripts/system/firewall
@@ -7,6 +7,9 @@ eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings)
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
eval $(/usr/local/bin/readhash /var/ipfire/optionsfw/settings)
IFACE=`/bin/cat /var/ipfire/red/iface 2> /dev/null | /usr/bin/tr -d '\012'`
+if [ -z $IFACE]; then
+ IFACE="red0"
+fi
if [ -f /var/ipfire/red/device ]; then
DEVICE=`/bin/cat /var/ipfire/red/device 2> /dev/null | /usr/bin/tr -d '\012'`
@@ -39,9 +42,6 @@ iptables_init() {
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
- # Ensure the xt_geoip module is always loaded (#12767)
- modprobe xt_geoip
-
# Enable TRACE logging to syslog
modprobe nf_log_ipv4
sysctl -q -w net.netfilter.nf_log.2=nf_log_ipv4
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2022-02-12 18:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4JwyyR0rZ7z2xgg@people01.haj.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@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