On 19/01/2023 10:22, Ralf Hildebrandt via Openvpn-users wrote:
A new day, a new observation!

$ sudo openvpn --config charite-hildeb.ovpn --up 
/etc/openvpn/update-resolv-conf --down /etc/openvpn/update-resolv-conf

... connection is being established, and now I'm sending ctrl-c to openvpn on 
the client ...

2023-01-19 10:11:40 Initialization Sequence Completed
^C
2023-01-19 10:14:14 event_wait : Interrupted system call (fd=-1,code=4)
2023-01-19 10:14:14 SIGTERM received, sending exit notification to peer
2023-01-19 10:14:14 SENT CONTROL [openvpn.charite.de]: 'EXIT' (status=1)
2023-01-19 10:14:15 net_route_v4_del: 10.27.0.0/16 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 10.28.0.0/15 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 10.32.0.0/11 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 172.16.0.0/15 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 192.168.192.0/18 via 172.29.0.1 dev 
[NULL] table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 141.42.0.0/16 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 193.175.72.0/24 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 193.175.74.0/23 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 193.175.174.0/26 via 172.29.0.1 dev 
[NULL] table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 172.19.252.0/27 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 net_route_v4_del: 194.94.4.0/23 via 172.29.0.1 dev [NULL] 
table 0 metric 200
2023-01-19 10:14:15 Closing DCO interface
2023-01-19 10:14:15 net_addr_v4_del: 172.29.0.2 dev tun0
2023-01-19 10:14:15 net_iface_del: delete tun0
2023-01-19 10:14:15 /etc/openvpn/update-resolv-conf tun0 1500 0 172.29.0.2 
255.255.248.0 init
Failed to resolve interface "tun0": No such device
2023-01-19 10:14:15 WARNING: Failed running command (--up/--down): external 
program exited with error status: 1
2023-01-19 10:14:15 Exiting due to fatal error

Question here: Does this matter? Is the tun0 interface taken down too
early? Should I even care?
The man page says:

--------------------------------------------------------
       8.  --down

           Executed after TCP/UDP and TUN/TAP close.
--------------------------------------------------------

So this is probably as expected. You could use --route-pre-down, to run scripts requiring the VPN interface to be available.


--
kind regards,

David Sommerseth
OpenVPN Inc


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to