Docker Desktop for Mac provides several networking features to make it easier to use. Features VPN Passthrough. Docker Desktop for Mac’s networking can work when attached to a VPN. To do this, Docker Desktop for Mac intercepts traffic from the containers and injects it into Mac as if it originated from the Docker application. Port Mapping
How to selectively route network traffic through VPN on On 10.7/Lion, I had better luck with: /sbin/route add 172.16.0.0/16 -interface $1 The arguments I saw ip-up getting are: $1 = VPN interface, e.g. 'ppp0' $2 = '0' (not sure what this value is) $3 = Your VPN IP $4 = VPN public gateway IP address $5 = Normal default gateway for ethernet/wifi – Gabe Martin-Dempesy Dec 7 '11 at 17:18 A simple fix for a 'Send all traffic over VPN' issue - Mac Simply go to your Network Preferences, open your Network Port Configurations, and drag the VPN entry to the top of the list. This seems to force all TCP/IP traffic over the VPN no matter what the Send all traffic over VPN setting is, but only when you are connected to a VPN. I don't think this is an ideal solution, but at least it allows me to Auto-Adding Routes When Mac PPTP Connection Comes Up Sep 26, 2016 How to use Selective/Policy Routing - VPN University
Using OpenVPN on Mac – Computer Action Team
Jul 26, 2017 Route App Traffic Mac Os Vpn Protonvpn 💋VPNAreaPros+ Jul 20, 2020
iOS 13: How to Make Sure all Traffic is - The Mac Observer
Simply go to your Network Preferences, open your Network Port Configurations, and drag the VPN entry to the top of the list. This seems to force all TCP/IP traffic over the VPN no matter what the Send all traffic over VPN setting is, but only when you are connected to a VPN. I don't think this is an ideal solution, but at least it allows me to Auto-Adding Routes When Mac PPTP Connection Comes Up Sep 26, 2016