From 0e17ecf584ce3be5dcf00eaa5f48370e950c8e26 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 10 Mar 2019 07:53:48 +0100 Subject: [PATCH] firewall: remove not about :0 on IPv6, was now merged upstream See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201695 --- .../library/OPNsense/Firewall/FilterRule.php | 43 ++++++++-------- .../app/library/OPNsense/Firewall/Rule.php | 43 ++++++++-------- .../library/OPNsense/Firewall/SNatRule.php | 50 ++++++++----------- .../app/library/OPNsense/Firewall/Util.php | 42 ++++++++-------- 4 files changed, 84 insertions(+), 94 deletions(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php b/src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php index 3bc6b0651..c88494c5d 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php +++ b/src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php @@ -1,32 +1,31 @@ interfaceMapping[$interf])) { $interf_settings = $this->interfaceMapping[$interf]; if (!empty($interf_settings['if'])) { - /* - * ":0" does not work for IPv6, but NAT is not relevant there anyway. - * The reason for this is that it selects the first address which is - * the link local address so the real global address is not found. - * - * Also see: https://reviews.freebsd.org/D17633 - */ $rule['target'] = "({$interf_settings['if']}:0)"; } } diff --git a/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php b/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php index 21df56382..366b97024 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php +++ b/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php @@ -1,31 +1,31 @@