-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
IMPORTANT NOTE
OpenVPN 2.6.8 running as client does not detect tunnel interface status , hence leaks the traffic.
Describe the bug
I am using 2.6.8 client (binary running on MacOs) and 2.6.8 server (running on Linux). I have built both of these binaries. In this case only tunnel interface on the client side is down but internet connectivity to reach out to server is good. I manually shut down the tunnel interface which led to deleting the routing entries pointing to tunnel interface (expected) . My understanding is that ping packets (in built feature of openVPN) do not use client side tunnel interface and openVPN client software stack will prepare a packet and apply encryption and push it out to server , response will also terminate to openVPN software only hence looks like tunnel interface is not being used for this . I was expecting openVPN client side software would detect tunnel interface status and reestablish the session to avoid the traffic leak.
To Reproduce
1 - Built and run 2.6.8 server on Linux.
2- Built and run 2.6.8 client on MacOs.
3- Connect and establish session , as part of this on Macos tun interface is created.
4- Manually shutdown the tunnel interface on MacOs.
5- OpenVPN client does not detect that tun interface is down and ping packets continues to work, please note these packets are between openVPN client and server (not the application using VPN)
Expected behavior
Expectation is that openVPN client should detect that interface is down (VPN routes are deleted) and should trigger reestablishing the connection or terminate the connection.
Version information (please complete the following information):
- Client OS: MacOs Ventura
- Sever OS - Linux
- OpenVPN version: 2.6.8
Additional context
Add any other context about the problem here.