[deleted] Hi all, I need to schedule auto connection and auto disconnection from my vpn. Is it possible configure it using windows shell bat? For example: [CONNECTION] cd C:\Program Files\OpenVPN\bin openvpn.exe --client-connect <profile-name> [DISCONNECTION] cd C:\Program Files\OpenVPN\bin openvpn.exe --client-disconnect Is it ok? Thanks a lot
Traffic kevin.mitnick wroteIs it ok?Not like that :roll: See --client-connect and --client-disconnect in The Manual v23x
[deleted] I used folowing script to start openvpn: cd "C:\Program Files\OpenVPN\config" "C:\Program Files\OpenVPN\bin\openvpn.exe" --config my-openvpn.ovpn It is perfect but I don't know how to disconnect my vpn... I must click F4 button on keyword to terminate connection. How can I simulate signal from shell script? Thanks
[deleted] I need to emulate f4 command on wondow prompt and generate disconnection of my openvpn-client. If I use CTRL+C, follow openvpn connection have problem 🙁 If I use F4 I read into shell: SIGTERM received, sending exit notifica closing tun tap interface How can I execute these commands from dos prompt shell? Thanks
Traffic You can telnet into your server and issue a SIGTERM signal. To do so you need to enable the openvpn management port. See --management in The Manual v23x