# Start the tunnel interface on WireGuard
wireguard-go utun3
# Start the tunnel interface on BoringTun
boringtun utun3 --disable-drop-privileges root
# Give the tunnel an IP address (iOS requires destination address too)
ifconfig utun3 inet 10.10.9.3/32 10.10.9.1
#ip addr add 10.10.9.3/32 dev utun3 && ip route add 10.10.9.1 via 10.10.9.3 dev utun3
# Set up the interface
ifconfig utun3 up
#ip l set up utun3
# Add route to the WireGuard server via the Wi-Fi gateway
route add 85.117.236.90 10.10.10.1
#ip route add 85.117.236.90 via 10.10.10.1 dev en0
# Apply the config to the tunnel
wg setconf utun3 /var/root/wireguard.conf
# Add route to the internet via the tunnel
route delete default && route add default 10.10.9.1
#ip route delete default && ip route add default via 10.10.9.1 dev utun3
#route add 0.0.0.0/1 10.10.9.1
#ip route add 0.0.0.0/1 via 10.10.9.1 dev utun3
#route add 128.0.0.0/1 10.10.9.1
#ip route add 128.0.0.0/1 via 10.10.9.1 dev utun3
DNS
/etc/resolv.conf
- Or change DNS from wifi settings
Removal
rm -f /var/run/wireguard/utun3.sock