Hi,
Can anyone guide me or point me somewhere on how to make a bash script for the management interface? I want to create a web gui (php) that can force to disconnect a client. I know that it will just try to reconnect again unless you revoke the certificate or change the password in my case (mysql auth).
I've read the man page on how to disconnect the client and I was able to do it by issuing a 'kill' command. However, I still don't know how to make this work via a bash script so that we can manage connections via gui.
Thanks
How to create bash script for management?
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Mon Aug 16, 2010 7:39 am
- gladiatr72
- Forum Team
- Posts: 194
- Joined: Mon Dec 13, 2010 3:51 pm
- Location: Lawrence, KS
Re: How to create bash script for management?
You're probably not going to do it with the shell alone. You might want to check out https://secure.wikimedia.org/wikipedia/en/wiki/Expect.
There even appears to be an expect php module: http://php.net/manual/en/expect.examples-usage.php
-S
There even appears to be an expect php module: http://php.net/manual/en/expect.examples-usage.php
-S
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole