From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, master, updated. ff7cb6d60fd1787b2810370e2a1200034535bd16
Date: Mon, 21 Apr 2014 13:53:59 +0200 [thread overview]
Message-ID: <20140421115359.33EF020AD0@argus.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2486 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, master has been updated
via ff7cb6d60fd1787b2810370e2a1200034535bd16 (commit)
from c3a86f4d20c066b3843a57542e3782ccef18e757 (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 ff7cb6d60fd1787b2810370e2a1200034535bd16
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Sun Apr 20 18:13:35 2014 +0200
firewall: Fix accessing port forwardings from internal networks.
When a different "external port" was used, false rules have
been created in the mangle table.
-----------------------------------------------------------------------
Summary of changes:
config/firewall/rules.pl | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
Difference in files:
diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl
index 2c314d1..c0ddcb2 100755
--- a/config/firewall/rules.pl
+++ b/config/firewall/rules.pl
@@ -354,20 +354,21 @@ sub buildrules {
# Destination NAT
if ($NAT_MODE eq "DNAT") {
- # Make port-forwardings useable from the internal networks.
- my @internal_addresses = &fwlib::get_internal_firewall_ip_addresses(1);
- unless ($nat_address ~~ @internal_addresses) {
- &add_dnat_mangle_rules($nat_address, @options);
- }
-
my @nat_options = ();
if ($protocol ne "all") {
my @nat_protocol_options = &get_protocol_options($hash, $key, $protocol, 1);
push(@nat_options, @nat_protocol_options);
}
+ push(@nat_options, @time_options);
+
+ # Make port-forwardings useable from the internal networks.
+ my @internal_addresses = &fwlib::get_internal_firewall_ip_addresses(1);
+ unless ($nat_address ~~ @internal_addresses) {
+ &add_dnat_mangle_rules($nat_address, @nat_options);
+ }
+
push(@nat_options, @source_options);
push(@nat_options, ("-d", $nat_address));
- push(@nat_options, @time_options);
my $dnat_port;
if ($protocol_has_ports) {
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2014-04-21 11:53 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=20140421115359.33EF020AD0@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