Skip to content

Commit 7e93f95

Browse files
committed
Add new article for macos vpn
Signed-off-by: Zhenbo Li <[email protected]>
1 parent dab1e1f commit 7e93f95

File tree

6 files changed

+63
-0
lines changed

6 files changed

+63
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
layout: post
3+
title: "macOS Sequoia 15.3.1 Share VPN to Windows Laptop"
4+
description: ""
5+
category:
6+
tags: []
7+
---
8+
9+
#### TL;DR
10+
[L2TP](https://en.wikipedia.org/wiki/Layer_2_Tunneling_Protocol) is a must. WireGuard and IKEv2 are not supported.
11+
12+
#### Background
13+
I have a personal MacBook running macOS Sequoia 15.3.1, and a Windows 11 laptop managed by my school. While using a public Wi-Fi, I want my MacBook to share the VPN to the Windows laptop.
14+
15+
When MacBook is connected to Wi-Fi, [it can only share Internet with Ethernet](https://apple.stackexchange.com/questions/25878/how-can-i-create-an-ad-hoc-connection-from-my-macbook-pro-wifi-connection)
16+
17+
18+
#### Physical Set-up
19+
A USB-C hub adapter needs to be connected to macbook to provide an ethernet port. My Windows laptop doesn't have an ethernet port,so we need the second USB hub adapter.
20+
21+
#### macOS Set-up
22+
23+
Settings -> VPN -> Add VPN Configuration -> L2TP over IPSec
24+
![Add VPN](/images/2025/macos_vpn/add_l2tp.png)
25+
26+
L2TP -> Options -> Send all traffic over VPN connection
27+
28+
29+
![Send traffic](/images/2025/macos_vpn/send_all.png)
30+
31+
32+
When the L2TP VPN is added and enabled, we can share the Internet now.
33+
34+
Settings -> General -> Internet Sharing -> More
35+
36+
![Internet Sharing](/images/2025/macos_vpn/sharing.png)
37+
38+
In the config dialog, set *Share your connection from* to *Wi-FI*, and enable AX88179A.
39+
40+
41+
![Internet Sharing Device](/images/2025/macos_vpn/share_more.png)
42+
43+
Enjoy!
44+
45+
#### Epilogue
46+
47+
When MacBook is connected to Wi-Fi, [it can also share Internet with Thunderbolt](https://support.apple.com/en-ca/guide/mac-help/mchld53dd2f5/mac). Sadly, my Windows laptop doesn't have one.
48+
49+
iPhone's USB tethering is limited. Only the cellular connection can be shared. [link](https://support.apple.com/en-ca/guide/iphone/iph45447ca6/ios)
50+
51+
Vanilla Android doesn't route VPN traffic when tethering [link](https://protonvpn.com/support/share-vpn-connection-android-hotspot). Modified Android like AOSP may have an option **Allow clients to use VPNs** [link1](https://www.reddit.com/r/VPN/comments/m13d0h/comment/gqbdist/) [link2](https://github.com/PixelExperience/android-issues/issues/5932). After rooting, there are several apps doing so, including [VPNHotspot](https://github.com/Mygod/VPNHotspot). Sadly (again), my Samsung Tablet at hand [can't unlock bootloader](https://www.reddit.com/r/androidroot/comments/1g2xhd9/unlock_bootloader_for_newer_samsung_devices_in/).

images/2025/macos_vpn/add_l2tp.png

261 KB
Loading

images/2025/macos_vpn/send_all.png

86.2 KB
Loading
131 KB
Loading

images/2025/macos_vpn/sharing.png

285 KB
Loading

jekyll.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
pkgs.mkShell {
3+
nativeBuildInputs = with pkgs.buildPackages; [
4+
rubyPackages_3_2.jekyll
5+
rubyPackages_3_2.rake
6+
rubyPackages_3_2.jekyll-paginate
7+
rubyPackages_3_2.kramdown-parser-gfm
8+
rubyPackages_3_2.webrick
9+
ruby_3_2
10+
];
11+
}
12+

0 commit comments

Comments
 (0)