SIGTERM[soft,remote-exit] received, process exiting

This forum is for admins who are looking to build or expand their OpenVPN setup.

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.
Post Reply
shajek
OpenVpn Newbie
Posts: 3
Joined: Wed Aug 17, 2022 3:19 pm

SIGTERM[soft,remote-exit] received, process exiting

Post by shajek » Wed Aug 17, 2022 3:36 pm

Hello,

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.
Where in OpenVPN 2.5.1 that i use on another machines, i do not have this problem with reconnecting/disconnecting
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

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: SIGTERM[soft,remote-exit] received, process exiting

Post by TinCanTech » Wed Aug 17, 2022 4:02 pm

You need a new client certificate and key for your second connection.

Post Reply