diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-05-14 16:42:43 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-05-14 16:42:43 -0700 |
commit | c0e6a3a30746bf7118da1fb2500476aec3c55c7d (patch) | |
tree | 233375e30bcab93ee66cb2e6bf2de774673293b5 /lib/Vyatta/IpTables/Rule.pm | |
parent | 44ce7347032a1f7dc9d0945bef7313f456806250 (diff) | |
download | vyatta-cfg-firewall-c0e6a3a30746bf7118da1fb2500476aec3c55c7d.tar.gz vyatta-cfg-firewall-c0e6a3a30746bf7118da1fb2500476aec3c55c7d.zip |
Fix 4390: Firewall config error: Cannot specify multiple ports when both
source and destination ports are specified.
Diffstat (limited to 'lib/Vyatta/IpTables/Rule.pm')
-rw-r--r-- | lib/Vyatta/IpTables/Rule.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/IpTables/Rule.pm b/lib/Vyatta/IpTables/Rule.pm index 46f3acf..be13cf0 100644 --- a/lib/Vyatta/IpTables/Rule.pm +++ b/lib/Vyatta/IpTables/Rule.pm @@ -384,7 +384,7 @@ sub rule { return ($err_str, ) if (!defined($srcrule)); ($dstrule, $err_str) = $dst->rule(); return ($err_str, ) if (!defined($dstrule)); - if ((grep /multiport/, $srcrule) || (grep /multiport/, $dstrule)) { + if ((grep /multiport/, $srcrule) ^ (grep /multiport/, $dstrule)) { if ((grep /sport/, $srcrule) && (grep /dport/, $dstrule)) { return ('Cannot specify multiple ports when both ' . 'source and destination ports are specified', ); |