On Tue, 3 May 2005, Dan Hulme wrote: > --I apologize if this message is repeated; Gmail seems to be having trouble > hitting this list. > > I recently switched a VPN server which had multiple tunnels to a single > tunnel using OpenVPN 2.0. > First off I would like to say that the new design fixes nearly everything I > wished was in 1.5/1.6, > so I am very impressed. I have been able to replace all tunnels with a > single tunnel, and single > client-configurations are very easy and work correctly. So, thanks for all > your hard work, James. > > Previously, on my multiple tunnel interface, I had some tunnels which > connected two LANs. I have > reimplemented these using 2.0, client-config-dir, and iroute. This works, > but has a major caveat. > It seems if the server VPN reboots, the iroutes from the CCDs get lost. > Apparently, the server > VPN loads these iroutes when the client connects. So, if the client is > already connected (i.e., > it did not reboot when the server did), the server never receives a signal to > load the CCD the > second time, and internal LAN machines on the client side are not connected > to the internal LAN on > the server side. > > This is very frustrating as it requires a client reboot if the server ever > reboots. With multiple > LAN endpoints, a single reboot requires multiple remote reboots. > > Am I doing something wrong, or is this the current behavior of OpenVPN? > Perhaps on restart > OpenVPN should reload CCD conf files if the client is still connected (does > it know?).
I'm not sure that I follow this. If the server VPN reboots, or if the OpenVPN server process is restarted, the server will start off with a blank slate and no client connections. The previously connected clients will individually time out based on the pushed "keepalive" setting, prompting them to attempt reconnection and a full TLS renegotiation with the server. This renegotiation will cause the "client-config-dir" files to be re-read and iroutes to be added to OpenVPN's internal routing table. James