]> git.ipfire.org Git - people/mlorenz/ipfire-2.x.git/blobdiff - config/firewall/rules.pl
BUG10994: SNAT rules are missing the outgoing interface
[people/mlorenz/ipfire-2.x.git] / config / firewall / rules.pl
index daa95651bbecaf02d70bf143856dd6546f082c29..8b0c6ddc8e69ac06339c39e3a1aec11ca47f445f 100644 (file)
@@ -467,6 +467,10 @@ sub buildrules {
                                                } elsif ($NAT_MODE eq "SNAT") {
                                                        my @nat_options = @options;
 
+                                                       if ($destination_intf) {
+                                                               push(@nat_options, ("-o", $destination_intf));
+                                                       }
+
                                                        push(@nat_options, @source_options);
                                                        push(@nat_options, @destination_options);