All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@tnetconsulting.net>
To: lartc@vger.kernel.org
Subject: Re: GRE-NAT broken - SOLVED
Date: Fri, 02 Feb 2018 23:18:46 +0000	[thread overview]
Message-ID: <d55034b5-a2c3-6ed8-d5e8-5d3c49711c36@spamtrap.tnetconsulting.net> (raw)
In-Reply-To: <93df1d66-01b5-1ddf-b3f7-5a59c940eb2f@spamtrap.tnetconsulting.net>

[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]

On 02/02/2018 02:30 PM, Matthias Walther wrote:
> You have a SNAT rule in there.
> 
> But my masquerading rule should do the exact same thing: -A POSTROUTING 
> -s 192.168.10.0/24 ! -d 192.168.10.0/24 -j MASQUERADE

Maybe, maybe not.

I thought you had additional globally routed IPs bound to the outside 
interface that were DNATed into the VMs.  (Have I remembered incorrectly?)

If that is the case, then MASQUERADEing will likely cause at least one 
of the tunnels to end up with the wrong GRE source IP on outgoing packets.

> Both cases, the first package from the inside and from the outside should 
> be covered. Or am I missing something here?

I think that the IPTables rules do account for packets in either 
direction to arrive first.

But I think the problem is when both ends send packets with timing that 
does not jive with state that Connection Tracking is expecting.

I /think/.

> True, but the implementation and my configuration of the same should 
> handle both cases.

I think it's a complication related to interaction between arrival 
timing and what Connection Tracking is expecting.  Hence the "UNREPLIED" 
in the output of conntrack -L.

> I'd have to look that up. So far the ping keeps the tunnels going.

Well, I think that's a good thing.  It seems like we're narrowing in on 
the problem.  The solution to said problem may be something else. 
(Unless you want to just leave persistent pings running.  }:-)



-- 
Grant. . . .
unix || die


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3982 bytes --]

  parent reply	other threads:[~2018-02-02 23:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31  5:29 GRE-NAT broken - SOLVED Grant Taylor
2018-01-31  5:33 ` Grant Taylor
2018-02-01 10:34 ` Matthias Walther
2018-02-01 18:31 ` Grant Taylor
2018-02-02 12:33 ` Matthias Walther
2018-02-02 20:21 ` Grant Taylor
2018-02-02 21:30 ` Matthias Walther
2018-02-02 23:18 ` Grant Taylor [this message]
2018-02-05  0:17 ` Matthias Walther
2018-02-05  1:05 ` Grant Taylor
2018-02-05 14:00 ` Matthias Walther
2018-02-05 23:10 ` Grant Taylor
2018-02-06 23:01 ` Matthias Walther
2018-02-07  3:52 ` Grant Taylor

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=d55034b5-a2c3-6ed8-d5e8-5d3c49711c36@spamtrap.tnetconsulting.net \
    --to=gtaylor@tnetconsulting.net \
    --cc=lartc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.