ss-abramchuk / OpenVPNAdapter

Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS.
GNU Affero General Public License v3.0
473 stars 209 forks source link

About Process IPv4 or IPv6 route #224

Open VeinGuo opened 2 years ago

VeinGuo commented 2 years ago

Remove redirect-gateway def1 in the ovpn configuration file The routing table does not add the forwarding of the gateway by default in OpenVPNAdapter

In macOS, Win and Linux clients, it is implemented to handle IPv4 or IPv6 gateway default route https://github.com/OpenVPN/openvpn3/blob/67172a582c1598f1e30fbd3a246251d60618416c/openvpn/tun/mac/client/tunsetup.hpp

image image

NEPacketTunnelNetworkSettings doesn't add it by default.