Hi all,
I'm currently facing an issue with the down script of my openvpn client, but only when running openvpn as a service.
If I start the VPN session with
sudo openvpn --config /etc/openvpn/ipvanish-BE-Brussels-bru-b01.conf
, then exiting the session with Ctrl+C, the up and down script are properly run (transmission goes up and down).
But when I start/stop the session using
service openvpn start
service openvpn stop
The up script is always properly run, but most of the time the down script is not run (transmission daemon stay up)
Hereafter a my config file:
client
dev tun
proto udp
remote bru-b01.ipvanish.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
persist-remote-ip
ca /etc/openvpn/ca.ipvanish.com.crt
tls-remote bru-b01.ipvanish.com
auth-user-pass
comp-lzo
verb 3
auth SHA256
cipher AES-256-CBC
keysize 256
tls-cipher DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA
auth-user-pass /etc/openvpn/login.txt
auth-nocache
script-security 2
up-restart
up /etc/openvpn/vpn_up.sh
down /etc/openvpn/vpn_down.sh
vpn_up.sh:
#!/bin/bash
service transmission-daemon start
vpn_down.sh:
#!/bin/bash
service transmission-daemon stop
=> Does anybody ever faced this kind of misbehavior ?
Thanks in advance for your support