Hi,

On Sun, Jun 11, 2017 at 11:23:38PM +0200, richard lucassen wrote:
> > > The tun device comes up and the up script for disabling router
> > > sollicitations is invoked afterwards (which is obvious because
> > > disabling router sollicitations is impossible when the device is
> > > not there yet)
> > 
> > Slightly annoying.  This particular one might be avoided, though, by
> > creating the tunnel beforehand ("openvpn --mktun tun0"), then
> > disabling RS on it, and *then* running "openvpn --dev tun0 ..." on
> > the pre-existing tunel device.
> 
> Well, in fact it does not matter very much. The slave is sending the
> packet, but the response is sent back to the master. 

"some bits of noise, but nothing bad"

So I take it's mostly working now?

[..]
> But there is still one tricky problem: the incoming NAT may change the
> src port of the stream. That is why OpenVPN sometimes logs something
> like 'src port (1024) unexpected instead of 1198, please remove
> "remote" or use "float"'

Ugh.  NAT involved.  Any way to do this without (like, doing the tunnel
over IPv6)?

> That's quite nasty. The master and slave conntrack database must remain
> the same for a smooth failover. So I needed to add an extra SNAT in the
> INPUT chain to sport 1198. This way I will force the source port ever
> to be 1198 (I hope)
> 
> I can also go for a NOTRACK target and put a rule above the ESTABLISHED
> rule. But I think I'll go for an extra SNAT rule. Once the connection is
> established, it won't be hit again.

That should be fine, then...

> But maybe Gert or anyone else has a better OpenVPN-ish solution to
> this :)

I'm afraid that *this* is outside OpenVPN's domain - you can play a bit
with --float, but that will break if port changes in a surprising way,
so both sides have the "wrong" remote port information all of a sudden.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]
fax: +49-89-35655025                        [email protected]

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to