On my VPN-gateway, I like to check every minute it all tunnels (VPN-clients) are up. Here in Holland, we have fixed IPs on ADSL, so I could do it using "netstat -anp | grep tincd" etc. Now I have some customers in Belgium, with dynamic ADSL IP-addresses, so I can no longer use netstat. So I looked into having tincd telling me which connections are up by sending a signal (much better anyway). Unfortunately the results are dumped to the (end of) the log-file, so I have to dig 'm out somehow. Also my logfiles grow rapidly this way. Then I tried specifying my own log-file using 'tincd -k=USR1 --logfile', but that doesn't seem to work. Results are still dumped to the log-file as specified by the real tincd daemon instead. What is the easiest way to obtain a report (every minute) on all connections that are up? Z.
On Tue, Jun 01, 2004 at 11:11:14PM +0200, Zoilo wrote:> Then I tried specifying my own log-file using 'tincd -k=USR1 --logfile', > but that doesn't seem to work. Results are still dumped to the log-file > as specified by the real tincd daemon instead. > > What is the easiest way to obtain a report (every minute) on all > connections that are up?Either start the real tincd with --logfile as well, or wait until we implemented a management interface in tinc (I can't tell you when that will happen), or hack tinc yourself. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus@sliepen.eu.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20040602/09e4abee/attachment.pgp