From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. e8c070037f574d10cca8e66b2d8f1b0bbcfdd30d
Date: Thu, 20 Jun 2013 11:02:35 +0200 [thread overview]
Message-ID: <20130620090235.63DD22075C@argus.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2846 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 e8c070037f574d10cca8e66b2d8f1b0bbcfdd30d (commit)
via f4c3f51441bc9420a645f23ae5f53c651ff53ee9 (commit)
from 5aef2fe3bd622d89ff8473a18099da6c1fa8c3fe (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 e8c070037f574d10cca8e66b2d8f1b0bbcfdd30d
Merge: f4c3f51 5aef2fe
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Thu Jun 20 11:02:27 2013 +0200
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
commit f4c3f51441bc9420a645f23ae5f53c651ff53ee9
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Thu Jun 20 10:59:31 2013 +0200
outgoing firewall: Reload firewall.local when changing outgoing fw.
-----------------------------------------------------------------------
Summary of changes:
config/outgoingfw/outgoingfw.pl | 11 +++++++++++
config/rootfiles/core/70/filelists/files | 1 +
2 files changed, 12 insertions(+)
Difference in files:
diff --git a/config/outgoingfw/outgoingfw.pl b/config/outgoingfw/outgoingfw.pl
index 7dd1430..1208567 100644
--- a/config/outgoingfw/outgoingfw.pl
+++ b/config/outgoingfw/outgoingfw.pl
@@ -105,6 +105,7 @@ system("/sbin/iptables --delete-chain OUTGOINGFWMAC >/dev/null 2>&1");
system("/sbin/iptables -N OUTGOINGFWMAC >/dev/null 2>&1");
if ( $outfwsettings{'POLICY'} eq 'MODE0' ) {
+ &firewall_local_reload();
exit 0
}
@@ -264,6 +265,8 @@ if ( $outfwsettings{'POLICY'} eq 'MODE1' ) {
applyrule("-o $netsettings{'RED_DEV'} -j DROP -m comment --comment 'DROP_OUTGOINGFW '", 0);
}
+&firewall_local_reload();
+
sub applyrule($$) {
my $cmd = shift;
my $macrule = shift;
@@ -273,3 +276,11 @@ sub applyrule($$) {
system("/sbin/iptables -A OUTGOINGFW $cmd");
}
}
+
+sub firewall_local_reload() {
+ my $script = "/etc/sysconfig/firewall.local";
+
+ if ( -x $script ) {
+ system("$script reload >/dev/null 2>&1");
+ }
+}
diff --git a/config/rootfiles/core/70/filelists/files b/config/rootfiles/core/70/filelists/files
index 683da92..52b9be7 100644
--- a/config/rootfiles/core/70/filelists/files
+++ b/config/rootfiles/core/70/filelists/files
@@ -49,3 +49,4 @@ usr/lib/squid/errors/tr/ERR_ZERO_SIZE_OBJECT
usr/lib/squid/errors/tr/error-details.txt
usr/local/bin/setddns.pl
var/ipfire/general-functions.pl
+var/ipfire/outgoing/bin/outgoingfw.pl
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2013-06-20 9:02 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=20130620090235.63DD22075C@argus.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