public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 51cf3f8be548e3bb3bff19bab7c27dbb56e6e426
@ 2014-03-21 12:39 git
  0 siblings, 0 replies; only message in thread
From: git @ 2014-03-21 12:39 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2061 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  51cf3f8be548e3bb3bff19bab7c27dbb56e6e426 (commit)
       via  f98bb538e59279bb0768a15fc7d95267f4d61c74 (commit)
      from  c0ce920610c15e9a3639dbaadb29feea1747ac34 (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 51cf3f8be548e3bb3bff19bab7c27dbb56e6e426
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Fri Mar 21 13:39:03 2014 +0100

    firewall: rules.pl: Honour time constraints for NAT rules as well.

commit f98bb538e59279bb0768a15fc7d95267f4d61c74
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Fri Mar 21 13:33:08 2014 +0100

    firewall: rules.pl: Catch invalid configurations.

-----------------------------------------------------------------------

Summary of changes:
 config/firewall/rules.pl | 6 ++++++
 1 file changed, 6 insertions(+)

Difference in files:
diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl
index d9c9b5c..f25983c 100755
--- a/config/firewall/rules.pl
+++ b/config/firewall/rules.pl
@@ -322,6 +322,7 @@ sub buildrules {
 							}
 							push(@nat_options, @source_options);
 							push(@nat_options, ("-d", $nat_address));
+							push(@nat_options, @time_options);
 
 							my $dnat_port;
 							if ($protocol_has_ports) {
@@ -337,6 +338,11 @@ sub buildrules {
 
 							# Use iptables DNAT
 							} else {
+								if ($destination_is_firewall && !$destination) {
+									$destination = &fwlib::get_external_address();
+								}
+								next unless ($destination);
+
 								my ($dnat_address, $dnat_mask) = split("/", $destination);
 								@destination_options = ("-d", $dnat_address);
 


hooks/post-receive
--
IPFire 2.x development tree

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-21 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-21 12:39 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 51cf3f8be548e3bb3bff19bab7c27dbb56e6e426 git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox