From: Matthias Gutmann <matthiasgutmann@gmx.net>
To: development@lists.ipfire.org
Subject: Re: [PATCH] BUG10994: SNAT rules are missing the outgoing interface
Date: Thu, 10 Dec 2015 19:47:51 +0100 [thread overview]
Message-ID: <274CEAA6-5BA7-46BA-AAF0-ABC6491AAF3A@gmx.net> (raw)
In-Reply-To: <1449765474.31655.99.camel@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]
Hi Michael,
i've tested it and it works as expected.
Regards
Matthias
> Am 10.12.2015 um 17:37 schrieb Michael Tremer <michael.tremer(a)ipfire.org>:
>
> Is there any evidence that this was tested by somebody else but you?
>
> -Michael
>
>> On Mon, 2015-12-07 at 15:57 +0100, Alexander Marx wrote:
>> When creating SNAT rules, the outgoing interface is not set. As a
>> side
>> effect, traffic that should be send unnatted to a vpn tunnel can be
>> natted which is a BUG.
>> With this patch the SNAT rules are getting a outgoing interface
>> according to the configuration. When selecting the RED Target
>> network,
>> all SNAT rules will be configured with "-o red0". Otherwise if "all"
>> is
>> selected, there is no interface in the rule, which matches all
>> networks.
>>
>> Signed-off-by: Alexander Marx <alexander.marx(a)ipfire.org>
>> ---
>> config/firewall/rules.pl | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl
>> index daa9565..8b0c6dd 100644
>> --- a/config/firewall/rules.pl
>> +++ b/config/firewall/rules.pl
>> @@ -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_op
>> tions, @source_options);
>> push(@nat_op
>> tions, @destination_options);
prev parent reply other threads:[~2015-12-10 18:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-07 14:57 Alexander Marx
2015-12-10 16:37 ` Michael Tremer
2015-12-10 18:47 ` Matthias Gutmann [this message]
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=274CEAA6-5BA7-46BA-AAF0-ABC6491AAF3A@gmx.net \
--to=matthiasgutmann@gmx.net \
--cc=development@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