Summary: | openvpn: check if network is already accessible | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Hesse <mail> |
Component: | Current packages | Assignee: | Jan Brinkmann (RETIRED) <luckyduck> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | Keywords: | InVCS |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | diff for /etc/init.d/openvpn init script |
Description
Christian Hesse
2005-05-12 06:25:45 UTC
Created attachment 59346 [details, diff]
diff for /etc/init.d/openvpn init script
I think it could look like this...
very good idea, all version in portage except 2.0(-r0) can use this nice feature now through a file called onlinecheck. 2.0-r1 makes use of the better initscript instead of the upstream one. to add a check: echo my.ip.to.check > /etc/openvpn/myconf/onlinecheck or echo myhost.org > /etc/openvpn/myconf/onlinecheck the initscript will try to ping the address given in the first line if the file exists. when there are problems, i.e. the hostname can't be resolved or the address can't be pinged the connection starts up. otherwise the initscript tells that the connection is already up and will be skipped. thanks again! |