Skip to contentSkip to conversation

2.1 rc20 and multiple interfaces problem

Openvpn-devel Olaf Fraczyk 4 participants 9 messages Oct 29, 2009 – Dec 12, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

I have several interfaces, the problem is that if:

I open connection from client to server IP=Y on interface ppp1 then I get packets back from IP=X on interface ppp0

For connection to IP=X on interface ppp0 I get correctly packets from IP=X on ppp0.

I have read that in 2.1 it should work, but it doesn't.

The OS is CentOS 5.4.

Best regards,

Olaf

Signature · 4 lines
Olaf Frączyk <[email protected]...>
NAVI
http://www.navi.pl
http://www.ntp.navi.pl

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#2 lore raw

Hello,

No, I wasn't using --multihome - I didn't know that this option exists and that is necessary. I haven't found it in man page and in documentation on the web page. The only place where I found it (after you let me know about it) was with openvpn --help.

Thank you, I'll try it.
BTW, why is it not by default?

Regards,

Olaf

Quoted 23 lines · James Yonan

Are you using the --multihome option?

James

Quoted 17 lines · Olaf Fraczyk

Hello,

I have several interfaces, the problem is that if:

I open connection from client to server IP=Y on interface ppp1 then I get packets back from IP=X on interface ppp0

For connection to IP=X on interface ppp0 I get correctly packets from IP=X on ppp0.

I have read that in 2.1 it should work, but it doesn't.

The OS is CentOS 5.4.

Best regards,

Olaf

Signature · 4 lines
Olaf Frączyk <[email protected]...>
NAVI
http://www.navi.pl
http://www.ntp.navi.pl
#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Olaf Fraczyk

Hello,

No, I wasn't using --multihome - I didn't know that this option exists and that is necessary. I haven't found it in man page and in documentation on the web page. The only place where I found it (after you let me know about it) was with openvpn --help.

Quoted 8 lines

Thank you, I'll try it.
BTW, why is it not by default?

Regards,

Olaf

Quoted 1 line · James Yonan

Are you using the --multihome option?

James, this option is not documented in the man pages, AFAICS. Could that be the reason the needed use was not discovered?

kind regards,

David Sommerseth

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines · Olaf Fraczyk

Hello,

I have several interfaces, the problem is that if:

I open connection from client to server IP=Y on interface ppp1 then I get packets back from IP=X on interface ppp0

For connection to IP=X on interface ppp0 I get correctly packets from IP=X on ppp0.

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

I have read that in 2.1 it should work, but it doesn't.

The OS is CentOS 5.4.

Best regards,

Olaf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkr8VskACgkQDC186MBRfrr/CwCffiAYHPSiJr43/adoVVi0xhQz NMIAnRn33NnRvaZcknGSjSdRUkUEnhHo
=X92t
-----END PGP SIGNATURE-----

#4 lore raw
Quoted 11 lines · David Sommerseth
Quoted 10 lines · Olaf Fraczyk

Hello,

No, I wasn't using --multihome - I didn't know that this option exists and that is necessary. I haven't found it in man page and in documentation on the web page. The only place where I found it (after you let me know about it) was with openvpn --help.

Thank you, I'll try it.
BTW, why is it not by default?

Quoted 6 lines
Quoted 6 lines

Regards,

Olaf

Quoted 1 line · James Yonan

Are you using the --multihome option?

Sorry to jump in here, but I've run into a weird behavior when using multihome in all versions, up to rc15 (I haven't tried later versions, but I guess that it would be the same thing since I don't see anything related to this in the changelog). I'm using Gentoo on both the client and the server.

In short, it seems that, despite having "multihome" enabled, the server still sends replies back to the client out the "wrong" interface, but only under certain (not clearly defined) conditions and only after some time(?).

Here is the server config (don't mind IP addresses, this is a lab network):

port 1194
multihome
proto udp
dev tap0
ca ca.crt
cert server.crt
key server.key
script-security 2
up up.sh
down down.sh
dh dh1024.pem
server-bridge 10.0.1.251 255.255.255.0 10.0.1.10 10.0.1.20 ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 6

And here is the client config:

client
remote 1.1.1.1 1194
remote 2.2.2.2 1194
remote-random
proto udp
dev tap0
ca ca.crt
cert client.crt
key client.key
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3

What I've noticed is that the very first connection from a client, regardless of the interface it hits, works fine. But for example, if that same client disconnects and then reconnects to the other interface (because of the remote- random option), then the problem happens. However, if another client connects second (rather than the first one disconnecting and reconnecting), the second client doesn't have problems, regardless of the interface it connects to. Here is an excerpt of the server log taken during the very first client connection:

----------
Thu Nov 12 19:58:16 2009 us=7043 192.168.2.2:1194 TLS: Initial packet from 192.168.2.2:1194 (via 2.2.2.2), sid=68a926bd 92b98d25
Thu Nov 12 19:58:16 2009 us=7235 192.168.2.2:1194 UDPv4 WRITE [26] to 192.168.2.2:1194 (via 2.2.2.2): P_CONTROL_HARD_RESET_SERVER_V2 kid=0 [ 0 ] pid=0 DATA len=0
....
Thu Nov 12 19:58:16 2009 us=146570 192.168.2.2:1194 Data Channel Encrypt:
Cipher 'BF-CBC' initialized with 128 bit key
Thu Nov 12 19:58:16 2009 us=146664 192.168.2.2:1194 Data Channel Encrypt:
Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Nov 12 19:58:16 2009 us=146802 192.168.2.2:1194 Data Channel Decrypt:
Cipher 'BF-CBC' initialized with 128 bit key
Thu Nov 12 19:58:16 2009 us=146886 192.168.2.2:1194 Data Channel Decrypt:
Using 160 bit message hash 'SHA1' for HMAC authentication
...
Thu Nov 12 19:58:16 2009 us=151489 192.168.2.2:1194 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Nov 12 19:58:16 2009 us=151588 192.168.2.2:1194 [Test-Client] Peer Connection Initiated with 192.168.2.2:1194 (via 2.2.2.2)
Thu Nov 12 19:58:17 2009 us=181119 Test-Client/192.168.2.2:1194 UDPv4 READ
[104] from 192.168.2.2:1194 (via 2.2.2.2): P_CONTROL_V1 kid=0 [ ] pid=26 DATA len=90
Thu Nov 12 19:58:17 2009 us=181558 Test-Client/192.168.2.2:1194 PUSH: Received control message: 'PUSH_REQUEST'
Thu Nov 12 19:58:17 2009 us=181841 Test-Client/192.168.2.2:1194 SENT CONTROL [Test-Client]: 'PUSH_REPLY,route-gateway 10.0.1.251,ping 10,ping-restart 120,ifconfig 10.0.1.10 255.255.255.0' (status=1)
...
Thu Nov 12 19:58:30 2009 us=170924 Test-Client/192.168.2.2:1194 UDPv4 WRITE
[77] to 192.168.2.2:1194 (via 2.2.2.2): P_DATA_V1 kid=0 DATA len=76 Thu Nov 12 19:58:30 2009 us=172448 Test-Client/192.168.2.2:1194 UDPv4 READ
[77] from 192.168.2.2:1194 (via 2.2.2.2): P_DATA_V1 kid=0 DATA len=76 Thu Nov 12 19:58:30 2009 us=172747 Test-Client/192.168.2.2:1194 TUN WRITE [42]
-----------

As you can see, the connection keeps using the 2.2.2.2 IP address. The connection works fine indeed. So far so good. But here's what happens if the client disconnects and reconnects to the other IP address (excerpts):

-----------
Thu Nov 12 19:58:47 2009 us=536468 Test-Client/192.168.2.2:1194 TLS: new session incoming connection from 192.168.2.2:1194 (via 1.1.1.1) Thu Nov 12 19:58:47 2009 us=536712 Test-Client/192.168.2.2:1194 UDPv4 WRITE
[26] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_HARD_RESET_SERVER_V2 kid=0 [ 0 ] pid=0 DATA len=0
Thu Nov 12 19:58:47 2009 us=538918 Test-Client/192.168.2.2:1194 UDPv4 READ
[22] from 192.168.2.2:1194 (via 1.1.1.1): P_ACK_V1 kid=0 [ 0 ] Thu Nov 12 19:58:47 2009 us=539257 Test-Client/192.168.2.2:1194 UDPv4 READ
[107] from 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=1 DATA len=93
Thu Nov 12 19:58:47 2009 us=553071 Test-Client/192.168.2.2:1194 UDPv4 WRITE
[126] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ 1 ] pid=1 DATA len=100
...
Thu Nov 12 19:58:47 2009 us=676688 Test-Client/192.168.2.2:1194 Control
Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA Thu Nov 12 19:58:48 2009 us=913316 Test-Client/192.168.2.2:1194 UDPv4 READ
[104] from 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=26 DATA len=90
Thu Nov 12 19:58:48 2009 us=913880 Test-Client/192.168.2.2:1194 PUSH: Received control message: 'PUSH_REQUEST'
Thu Nov 12 19:58:38 2009 us=914158 Test-Client/192.168.2.2:1194 SENT CONTROL [Test-Client]: 'PUSH_REPLY,route-gateway 10.0.1.251,ping 10,ping-restart 120,ifconfig 10.0.1.10 255.255.255.0' (status=1)
Thu Nov 12 19:58:48 2009 us=914437 Test-Client/192.168.2.2:1194 UDPv4 WRITE
[22] to 192.168.2.2:1194 (via 1.1.1.1): P_ACK_V1 kid=0 [ 26 ]
Thu Nov 12 19:58:48 2009 us=915625 Test-Client/192.168.2.2:1194 UDPv4 WRITE
[114] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=38 DATA len=100
Thu Nov 12 19:58:48 2009 us=916975 Test-Client/192.168.2.2:1194 UDPv4 WRITE
[68] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=39 DATA len=54
...
Thu Nov 12 19:58:55 2009 us=570541 Test-Client/192.168.2.2:1194 UDPv4 READ
[77] from 192.168.2.2:1194 (via 1.1.1.1): P_DATA_V1 kid=0 DATA len=76 Thu Nov 12 19:58:55 2009 us=570881 Test-Client/192.168.2.2:1194 TUN WRITE [42] Thu Nov 12 19:58:55 2009 us=571510 Test-Client/192.168.2.2:1194 TUN READ [42] Thu Nov 12 19:58:55 2009 us=571790 Test-Client/192.168.2.2:1194 UDPv4 WRITE
[77] to 192.168.2.2:1194 (via 2.2.2.2): P_DATA_V1 kid=0 DATA len=76
-----------

As you can see, the client connection comes in correctly from 1.1.1.1, and all the initial negotiation indeed happens using that IP address. The client gets to the point where "initialization sequence completed" is printed. So everything would look fine up to here.
However, as soon as the client starts sending or receiving actual data over the VPN, the server starts sending replies packets via the other interface (as you can see from the very last log line above), and of course the client log fills with the dreaded message

-----------
Thu Nov 12 19:58:59 2009 TCP/UDP: Incoming packet rejected from 2.2.2.2:1194[2], expected peer address: 1.1.1.1:1194 (allow this incoming source address/port by removing --remote or adding --float)
-----------

Now of course I could use --float on the client, but I think that if multihome worked as expected, there would be no need for that.

Looking through the old mailing list posts, I've found this email

http://article.gmane.org/gmane.network.openvpn.user/18805/

that mentions a similar problem, but I'm not sure it's the same one I'm seeing. Furthermore, that email is quite old: is that bug still present?

Or, finally, am I doing something wrong (also likely)?

Thank you in advance.

Signature · 1 line
D.
#5 lore raw

Davide,

Try adding the "nobind" directive to your client config file. I think this will solve the problem.

James

Quoted 128 lines · Davide Brini
Quoted 11 lines · David Sommerseth
Quoted 10 lines · Olaf Fraczyk

Hello,

No, I wasn't using --multihome - I didn't know that this option exists and that is necessary. I haven't found it in man page and in documentation on the web page. The only place where I found it (after you let me know about it) was with openvpn --help.

Thank you, I'll try it.
BTW, why is it not by default?

Quoted 6 lines
Quoted 6 lines

Regards,

Olaf

Quoted 1 line · James Yonan

Are you using the --multihome option?

Sorry to jump in here, but I've run into a weird behavior when using multihome in all versions, up to rc15 (I haven't tried later versions, but I guess that it would be the same thing since I don't see anything related to this in the changelog). I'm using Gentoo on both the client and the server.

In short, it seems that, despite having "multihome" enabled, the server still sends replies back to the client out the "wrong" interface, but only under certain (not clearly defined) conditions and only after some time(?).

Here is the server config (don't mind IP addresses, this is a lab network):

port 1194
multihome proto udp
dev tap0
ca ca.crt
cert server.crt
key server.key
script-security 2
up up.sh
down down.sh
dh dh1024.pem
server-bridge 10.0.1.251 255.255.255.0 10.0.1.10 10.0.1.20 ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 6

And here is the client config:

client
remote 1.1.1.1 1194
remote 2.2.2.2 1194
remote-random
proto udp
dev tap0
ca ca.crt
cert client.crt
key client.key
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3

What I've noticed is that the very first connection from a client, regardless of the interface it hits, works fine. But for example, if that same client disconnects and then reconnects to the other interface (because of the remote- random option), then the problem happens. However, if another client connects second (rather than the first one disconnecting and reconnecting), the second client doesn't have problems, regardless of the interface it connects to. Here is an excerpt of the server log taken during the very first client connection:

----------
Thu Nov 12 19:58:16 2009 us=7043 192.168.2.2:1194 TLS: Initial packet from 192.168.2.2:1194 (via 2.2.2.2), sid=68a926bd 92b98d25
Thu Nov 12 19:58:16 2009 us=7235 192.168.2.2:1194 UDPv4 WRITE [26] to 192.168.2.2:1194 (via 2.2.2.2): P_CONTROL_HARD_RESET_SERVER_V2 kid=0 [ 0 ] pid=0 DATA len=0
....
Thu Nov 12 19:58:16 2009 us=146570 192.168.2.2:1194 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Nov 12 19:58:16 2009 us=146664 192.168.2.2:1194 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Nov 12 19:58:16 2009 us=146802 192.168.2.2:1194 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Nov 12 19:58:16 2009 us=146886 192.168.2.2:1194 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
...
Thu Nov 12 19:58:16 2009 us=151489 192.168.2.2:1194 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Nov 12 19:58:16 2009 us=151588 192.168.2.2:1194 [Test-Client] Peer Connection Initiated with 192.168.2.2:1194 (via 2.2.2.2)
Thu Nov 12 19:58:17 2009 us=181119 Test-Client/192.168.2.2:1194 UDPv4 READ [104] from 192.168.2.2:1194 (via 2.2.2.2): P_CONTROL_V1 kid=0 [ ] pid=26 DATA len=90
Thu Nov 12 19:58:17 2009 us=181558 Test-Client/192.168.2.2:1194 PUSH: Received control message: 'PUSH_REQUEST'
Thu Nov 12 19:58:17 2009 us=181841 Test-Client/192.168.2.2:1194 SENT CONTROL [Test-Client]: 'PUSH_REPLY,route-gateway 10.0.1.251,ping 10,ping-restart 120,ifconfig 10.0.1.10 255.255.255.0' (status=1)
...
Thu Nov 12 19:58:30 2009 us=170924 Test-Client/192.168.2.2:1194 UDPv4 WRITE [77] to 192.168.2.2:1194 (via 2.2.2.2): P_DATA_V1 kid=0 DATA len=76
Thu Nov 12 19:58:30 2009 us=172448 Test-Client/192.168.2.2:1194 UDPv4 READ [77] from 192.168.2.2:1194 (via 2.2.2.2): P_DATA_V1 kid=0 DATA len=76
Thu Nov 12 19:58:30 2009 us=172747 Test-Client/192.168.2.2:1194 TUN WRITE [42]
-----------

As you can see, the connection keeps using the 2.2.2.2 IP address. The connection works fine indeed. So far so good. But here's what happens if the client disconnects and reconnects to the other IP address (excerpts):

-----------
Thu Nov 12 19:58:47 2009 us=536468 Test-Client/192.168.2.2:1194 TLS: new session incoming connection from 192.168.2.2:1194 (via 1.1.1.1)
Thu Nov 12 19:58:47 2009 us=536712 Test-Client/192.168.2.2:1194 UDPv4 WRITE [26] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_HARD_RESET_SERVER_V2 kid=0 [ 0 ] pid=0 DATA len=0 Thu Nov 12 19:58:47 2009 us=538918 Test-Client/192.168.2.2:1194 UDPv4 READ [22] from 192.168.2.2:1194 (via 1.1.1.1): P_ACK_V1 kid=0 [ 0 ]
Thu Nov 12 19:58:47 2009 us=539257 Test-Client/192.168.2.2:1194 UDPv4 READ [107] from 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=1 DATA len=93
Thu Nov 12 19:58:47 2009 us=553071 Test-Client/192.168.2.2:1194 UDPv4 WRITE [126] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ 1 ] pid=1 DATA len=100
...
Thu Nov 12 19:58:47 2009 us=676688 Test-Client/192.168.2.2:1194 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Nov 12 19:58:48 2009 us=913316 Test-Client/192.168.2.2:1194 UDPv4 READ [104] from 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=26 DATA len=90
Thu Nov 12 19:58:48 2009 us=913880 Test-Client/192.168.2.2:1194 PUSH: Received control message: 'PUSH_REQUEST'
Thu Nov 12 19:58:38 2009 us=914158 Test-Client/192.168.2.2:1194 SENT CONTROL [Test-Client]: 'PUSH_REPLY,route-gateway 10.0.1.251,ping 10,ping-restart 120,ifconfig 10.0.1.10 255.255.255.0' (status=1) Thu Nov 12 19:58:48 2009 us=914437 Test-Client/192.168.2.2:1194 UDPv4 WRITE [22] to 192.168.2.2:1194 (via 1.1.1.1): P_ACK_V1 kid=0 [ 26 ]
Thu Nov 12 19:58:48 2009 us=915625 Test-Client/192.168.2.2:1194 UDPv4 WRITE [114] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=38 DATA len=100
Thu Nov 12 19:58:48 2009 us=916975 Test-Client/192.168.2.2:1194 UDPv4 WRITE [68] to 192.168.2.2:1194 (via 1.1.1.1): P_CONTROL_V1 kid=0 [ ] pid=39 DATA len=54
...
Thu Nov 12 19:58:55 2009 us=570541 Test-Client/192.168.2.2:1194 UDPv4 READ [77] from 192.168.2.2:1194 (via 1.1.1.1): P_DATA_V1 kid=0 DATA len=76
Thu Nov 12 19:58:55 2009 us=570881 Test-Client/192.168.2.2:1194 TUN WRITE [42]
Thu Nov 12 19:58:55 2009 us=571510 Test-Client/192.168.2.2:1194 TUN READ [42]
Thu Nov 12 19:58:55 2009 us=571790 Test-Client/192.168.2.2:1194 UDPv4 WRITE [77] to 192.168.2.2:1194 (via 2.2.2.2): P_DATA_V1 kid=0 DATA len=76
-----------

As you can see, the client connection comes in correctly from 1.1.1.1, and all the initial negotiation indeed happens using that IP address. The client gets to the point where "initialization sequence completed" is printed. So everything would look fine up to here. However, as soon as the client starts sending or receiving actual data over the VPN, the server starts sending replies packets via the other interface (as you can see from the very last log line above), and of course the client log fills with the dreaded message

-----------
Thu Nov 12 19:58:59 2009 TCP/UDP: Incoming packet rejected from 2.2.2.2:1194[2], expected peer address: 1.1.1.1:1194 (allow this incoming source address/port by removing --remote or adding --float)
-----------

Now of course I could use --float on the client, but I think that if multihome worked as expected, there would be no need for that.

Looking through the old mailing list posts, I've found this email

http://article.gmane.org/gmane.network.openvpn.user/18805/

that mentions a similar problem, but I'm not sure it's the same one I'm seeing. Furthermore, that email is quite old: is that bug still present?

Or, finally, am I doing something wrong (also likely)?

Thank you in advance.

#6 lore raw
Quoted 2 lines · James Yonan

Try adding the "nobind" directive to your client config file. I think this will solve the problem.

That seems indeed to do it. Thank you very much!

However, never in my life could I have imagined that this was due to a setting *on the client*. For single-homed clients, my (possibly wrong) understanding was that using or not using "nobind" would essentially be the same. Since now I'm curious, could you please kindly provide a bit more insight as to *why* using "nobind" on the client fixes it, and how that affects the server?

Thank you.

Signature · 1 line
D.
#7 lore raw
Quoted 8 lines · Davide Brini
Quoted 2 lines · James Yonan

Try adding the "nobind" directive to your client config file. I think this will solve the problem.

That seems indeed to do it. Thank you very much!

However, never in my life could I have imagined that this was due to a setting *on the client*. For single-homed clients, my (possibly wrong) understanding was that using or not using "nobind" would essentially be the same. Since now I'm curious, could you please kindly provide a bit more insight as to *why* using "nobind" on the client fixes it, and how that affects the server?

Using nobind on the client for UDP client connections generates a socket with a dynamic source port number. This is key because it means that when the client reconnects, it does so with a new source port number, and this allows OpenVPN to detect that the initial UDP packet represents a new connection, and is not part of the old connection.

The problem is that when nobind is not used, the source port on the new connection is recycled -- it's the same as the old connection. So when OpenVPN sees the connection-initiating packet, after the client switches over to the secondary server address, it gets confused because it doesn't expect sessions from a given source address to change its destination address mid-session.

James

#8 lore raw
Quoted 6 lines · James Yonan

Using nobind on the client for UDP client connections generates a socket with a dynamic source port number. This is key because it means that when the client reconnects, it does so with a new source port number, and this allows OpenVPN to detect that the initial UDP packet represents a new connection, and is not part of the old connection.

Quoted 6 lines

The problem is that when nobind is not used, the source port on the new connection is recycled -- it's the same as the old connection. So when OpenVPN sees the connection-initiating packet, after the client switches over to the secondary server address, it gets confused because it doesn't expect sessions from a given source address to change its destination address mid-session.

Quite subtle, but makes sense indeed.
If I can make a suggestion, I'd add a note in the documentation about this particular interaction between the use of "multihome" on the server and not using "nobind" on the client (though it should be rare to see clients without "nobind", agreed), so other people won't be puzzled as I was when trying to debug it.

Thanks again!

Signature · 1 line
D.
#9 lore raw
In reply to David Sommerseth
Quoted 14 lines · David Sommerseth

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · Olaf Fraczyk

Hello,

No, I wasn't using --multihome - I didn't know that this option exists and that is necessary. I haven't found it in man page and in documentation on the web page. The only place where I found it (after you let me know about it) was with openvpn --help.

Thank you, I'll try it.
BTW, why is it not by default?

Quoted 8 lines
Quoted 5 lines

Regards,

Olaf

Quoted 1 line · James Yonan

Are you using the --multihome option?

James, this option is not documented in the man pages, AFAICS. Could that be the reason the needed use was not discovered?

I've documented --multihome in the man page. The change has been checked into svn and will be in the next release.

James