[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-users] How to make 2.0.x conditionally connect?

  • Subject: Re: [Openvpn-users] How to make 2.0.x conditionally connect?
  • From: "Prasanna Krishnamoorthy" <prasanna79@xxxxxxxxx>
  • Date: Sun, 16 Dec 2007 09:34:57 +0530

On Dec 16, 2007 2:57 AM, Alexander Hoogerhuis <alexh@xxxxxxxx> wrote:
> Jan Just Keijser wrote:
> > Use an
> >   --up cmd
> > script. This script is called as
> >   cmd tun_dev tun_mtu link_mtu ifconfig_local_ip ifconfig_remote_ip [
> > init | restart ]
> > If the command exits with an error code openvpn aborts. So if you write
> > an 'up' script that does something like
> I forgot to add, what I'm probably looking for is the non-existant --up
> counterpart to --down-pre, that I could do my tests and then stop it
> attempt the connect in the first place.
You could just write a wrapper script around openvpn to check the
interface IPs and not call openvpn I guess?
OpenVPN mailing lists