←back to thread

296 points jmillikin | 4 comments | | HN request time: 0.938s | source
Show context
avhception ◴[] No.44411604[source]
I'm operating a few IPv6-only VPNs at work, for access to internal infrastructure. The biggest problem so far is that Windows and macOS clients need a v6 DNS server. Otherwise, they won't even try to resolve v6onlyhost.vpn.example.com. Because the client may or may not be in a v6-enabled network, I have to run a DNS server inside the VPN and push that to the client, which can lead to all kinds of problems when the VPN disconnects but the Wireguard app for some reason fails to reset the DNS to the original one.
replies(2): >>44413252 #>>44420069 #
somidscr21 ◴[] No.44413252[source]
I've found that using my v4 only network from my ISP and macOS can do v6 only without requiring a DNS server like you have been doing. I don't remember the details now, but after some digging a few years ago I realized macOS will happily work like that as long as it has a v6 address. I can put a ULA address on my host, and it's good to go. Granted this relies on users knowing how to do that. or depending on the VPN application to get to the v6 only network, you may be able to script adding a ULA (any kind even made up). You don't want to leave it wIth a made up ULA because that could screw things up if the user moves to a v6 capable network.
replies(1): >>44413431 #
1. avhception ◴[] No.44413431[source]
Interesting. Do you actually use that trick in production? I'd have to find a name of an interface that I could safely mess with...
replies(1): >>44413655 #
2. somidscr21 ◴[] No.44413655[source]
Yeah I've been using it daily for almost a year as have many other people at work
replies(1): >>44414924 #
3. avhception ◴[] No.44414924[source]
In an automated fashion using some kind of "PostUp" Script (to use the Wireguard term) or do you add the IPs manually after the VPN has been established?
replies(1): >>44416611 #
4. somidscr21 ◴[] No.44416611{3}[source]
I was able to write an AppleScript that ran on connection to add a dummy ULA and a disconnect script that undid it and went back to auto v6.