No error in the syslog, it says it is reconnected. But Policy routing rules are not applied.
I have tried VPN-Failover but it is the same.
Here is the log when openvpn restart automatically.
#########
Dec 3 01:14:52 AX88U-olivier ovpn-client1[26046]: [lu-lux-001.mullvad.net] Inactivity timeout (--ping-restart), restarting
Dec 3 01:14:52 AX88U-olivier ovpn-client1[26046]: SIGUSR1[soft,ping-restart] received, process restarting
Dec 3 01:14:52 AX88U-olivier ovpn-client1[26046]: Restart pause, 5 second(s)
Dec 3 01:14:57 AX88U-olivier ovpn-client1[26046]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Dec 3 01:14:57 AX88U-olivier ovpn-client1[26046]: NOTE: --fast-io is disabled since we are not using UDP
Dec 3 01:14:57 AX88U-olivier ovpn-client1[26046]: TCP/UDP: Preserving recently used remote address: [AF_INET]92.223.89.160:443
Dec 3 01:14:57 AX88U-olivier ovpn-client1[26046]: Socket Buffers: R=[87380->1048576] S=[16384->1048576]
Dec 3 01:14:57 AX88U-olivier ovpn-client1[26046]: Attempting to establish TCP connection with [AF_INET]92.223.89.160:443 [nonblock]
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: TCP connection established with [AF_INET]92.223.89.160:443
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: TCP_CLIENT link local: (not bound)
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: TCP_CLIENT link remote: [AF_INET]92.223.89.160:443
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: TLS: Initial packet from [AF_INET]92.223.89.160:443, sid=868078e9 a51d5538
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: VERIFY OK: depth=2, C=SE, ST=Gotaland, L=Gothenburg, O=Amagicom AB, OU=Mullvad, CN=Mullvad Root CA v2, emailAddress=security@mullvad.net
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: VERIFY OK: depth=1, C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=Mullvad Intermediate CA v2, emailAddress=security@mullvad.net
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: VERIFY KU OK
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: Validating certificate extended key usage
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: VERIFY EKU OK
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: VERIFY OK: depth=0, C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=lu-lux-001.mullvad.net, emailAddress=security@mullvad.net
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 4096 bit RSA
Dec 3 01:14:58 AX88U-olivier ovpn-client1[26046]: [lu-lux-001.mullvad.net] Peer Connection Initiated with [AF_INET]92.223.89.160:443
Dec 3 01:15:00 AX88U-olivier ovpn-client1[26046]: SENT CONTROL [lu-lux-001.mullvad.net]: 'PUSH_REQUEST' (status=1)
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: SENT CONTROL [lu-lux-001.mullvad.net]: 'PUSH_REQUEST' (status=1)
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 10.5.0.1,redirect-gateway def1 bypass-dhcp,route-ipv6 0000::/2,route-ipv6 4000::/2,route-ipv6 8000::/2,route-ipv6 C000::/2,comp-lzo no,route-gateway 10.5.0.1,topology subnet,socket-flags TCP_NODELAY,ifconfig-ipv6 fdda:d0d0:cafe:443::1001/64 fdda:d0d0:cafe:443::,ifconfig 10.5.0.3 255.255.0.0,peer-id 0,cipher AES-256-GCM'
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Pushed option removed by filter: 'route-ipv6 0000::/2'
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Pushed option removed by filter: 'route-ipv6 4000::/2'
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Pushed option removed by filter: 'route-ipv6 8000::/2'
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Pushed option removed by filter: 'route-ipv6 C000::/2'
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Pushed option removed by filter: 'ifconfig-ipv6 fdda:d0d0:cafe:443::1001/64 fdda:d0d0:cafe:443::'
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: compression on parms modified
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: --socket-flags option modified
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: --ifconfig/up options modified
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: route options modified
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: route-related options modified
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: peer-id set
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: adjusting link_mtu to 1627
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: OPTIONS IMPORT: data channel crypto options modified
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Data Channel: using negotiated cipher 'AES-256-GCM'
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Preserving previous TUN/TAP instance: tun11
Dec 3 01:15:05 AX88U-olivier ovpn-client1[26046]: Initialization Sequence Completed
Dec 3 01:20:00 AX88U-olivier (VPN_Failover.sh): 20764 v1.18 Started..... [1 ignore=2,3,4,5 once multiconfig force curlrate=500000]
Dec 3 01:20:00 AX88U-olivier (VPN_Failover.sh): 20764 once
Dec 3 01:20:00 AX88U-olivier (VPN_Failover.sh): 20764 VPN Client Monitor: Checking VPN Client 1 connection status....
Dec 3 01:20:01 AX88U-olivier (VPN_Failover.sh): 20764 Starting VPN Client 1 cURL 'big' data transfer.....(Expect 12MB approx @3.1MB/sec on 20Mbps download = 00:04 secs)
Dec 3 01:20:02 AX88U-olivier (VPN_Failover.sh): 20764 cURL 12MByte transfer took: 00:01.35 secs @9245562 B/sec
Dec 3 01:20:02 AX88U-olivier (VPN_Failover.sh): 20764 VPN Client Monitor: VPN Client 1 status OK using MINIMIUM acceptable cURL transfer rate (500000 Bytes/sec)
Dec 3 01:20:02 AX88U-olivier (VPN_Failover.sh): 20764 VPN Client Monitor: Monitoring VPN Client 1 terminated
########
VPN connection is ok, but ip rule shows that my Policy routing is not set:
######
0: from all lookup local
9990: from all fwmark 0x8000/0x8000 lookup main
9991: from all fwmark 0x7000/0x7000 lookup ovpnc4
9992: from all fwmark 0x3000/0x3000 lookup ovpnc5
9993: from all fwmark 0x1000/0x1000 lookup ovpnc1
9994: from all fwmark 0x2000/0x2000 lookup ovpnc2
9995: from all fwmark 0x4000/0x4000 lookup ovpnc3
10201: from 192.168.1.1 lookup main
10301: from 192.168.1.22 lookup ovpnc2
32766: from all lookup main
32767: from all lookup default
#######