I have a use case where I have to add new "ConnectTo=host" in tinc.conf and reload tinc. This is to make sure existing connections do not get disconnected. I use ... /usr/local/sbin/tinc --pidfile /var/run/tinc.vpn.pid -n vpn reload this works for most part, however, I am now seeing instance where I have to do a restart instead of reload. New connection works after a restart. Is there a better way to ensure that new ConnectTo are established without having to do a full restart? Objective is to make sure existing connections do not get disrupted in any way. Thanks, Anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20141229/39989757/attachment.html>
On Mon, Dec 29, 2014 at 03:44:21PM +0530, Anil Moris wrote:> I have a use case where I have to add new "ConnectTo=host" in tinc.conf and > reload tinc. This is to make sure existing connections do not get > disconnected. > I use ... > /usr/local/sbin/tinc --pidfile /var/run/tinc.vpn.pid -n vpn reload > this works for most part, however, I am now seeing instance where I have to > do a restart instead of reload. New connection works after a restart.Which version of tinc are you using? Also, can you send me level 5 log output from around the time you try the reload command but it doesn't work? You can create the log this way: /usr/local/sbin/tinc --pidfile /var/run/tinc.vpn.pid log 5 >logfile Are you using the AutoConnect option?> Is there a better way to ensure that new ConnectTo are established without > having to do a full restart? Objective is to make sure existing connections > do not get disrupted in any way.It's supposed to work fine this way. I checked, it works fine for me. Tinc should also automatically reload if you add ConnectTo using the command line interface: /usr/local/sbin/tinc -n vpn add ConnectTo host -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20141229/b04e5771/attachment.sig>
Hi Guus, I am using tinc version 1.1pre10 (built Dec 1 2014 08:17:01, protocol 17.3) I am not using AutoConnect option. If it happens again I will try the command line option as you mentioned. currently in my tinc.conf I have around 10 'ConnectTo' do you think this may be an issue. I am trying to limit it to 5. but for my use case I need to connect to up to 10 or more hosts. Thanks, Anil On Mon, Dec 29, 2014 at 3:55 PM, Guus Sliepen <guus at tinc-vpn.org> wrote:> On Mon, Dec 29, 2014 at 03:44:21PM +0530, Anil Moris wrote: > > > I have a use case where I have to add new "ConnectTo=host" in tinc.conf > and > > reload tinc. This is to make sure existing connections do not get > > disconnected. > > I use ... > > /usr/local/sbin/tinc --pidfile /var/run/tinc.vpn.pid -n vpn reload > > this works for most part, however, I am now seeing instance where I have > to > > do a restart instead of reload. New connection works after a restart. > > Which version of tinc are you using? Also, can you send me level 5 log > output from around the time you try the reload command but it doesn't > work? You can create the log this way: > > /usr/local/sbin/tinc --pidfile /var/run/tinc.vpn.pid log 5 >logfile > > Are you using the AutoConnect option? > > > Is there a better way to ensure that new ConnectTo are established > without > > having to do a full restart? Objective is to make sure existing > connections > > do not get disrupted in any way. > > It's supposed to work fine this way. I checked, it works fine for me. > Tinc should also automatically reload if you add ConnectTo using the > command line interface: > > /usr/local/sbin/tinc -n vpn add ConnectTo host > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20141230/cd7a1801/attachment.html>