i am using OVPN Server on Mikrotik RB4011 with ROS 7.4.1.
I successfully configured the UDP server and used it for a long time.
Today I installed Ubuntu 22 with openvpn 2.5.5, started the client using systemd as usual. Everything worked OK until the client was disconnected, where the open service received a SIGTERM
Code: Select all
Aug 17 14:36:44 ubuntu ovpn-client[2275]: TCP/UDP: Closing socket
Aug 17 14:36:44 ubuntu ovpn-client[2275]: Closing TUN/TAP interface
Aug 17 14:36:44 ubuntu ovpn-client[2275]: net_addr_v4_del: 192.168.89.27 dev tun0
Aug 17 14:36:44 ubuntu ovpn-client[2275]: SIGTERM[soft,remote-exit] received, process exiting
Aug 17 14:36:44 ubuntu systemd[1]: openvpn@client.service: Deactivated successfully.
I have same ovpn file, same server config, only differnet user/password
Client config
client
dev tun
proto udp
remote my.vpn.com 1195
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
ca ca.crt
cert client.crt
key client.key
askpass client.pass
verb 4
mute 10
cipher AES-256-CBC
auth SHA1
auth-user-pass secret
auth-nocache
up after.sh
Have you any suggestions ? I see some post on goole about sigterm and remote-exit. But no solution. I dont want to end with external script checking if ovpn si running, when in previous version that works
Thanks