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
Code: Select all
sudo openvpn --config /etc/openvpn/ipvanish-BE-Brussels-bru-b01.conf
But when I start/stop the session using
Code: Select all
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:
Code: Select all
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
Code: Select all
#!/bin/bash
service transmission-daemon start
Code: Select all
#!/bin/bash
service transmission-daemon stop
Thanks in advance for your support