frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

WireGuard client for macOS doesn't support split tunneling so I made one

https://medium.com/@bajajvikash/wireguard-client-for-macos-doesnt-support-split-tunneling-so-i-made-one-f1f53ea790fc
8•scottydelta•5h ago

Comments

slau•3h ago
I’m a bit confused. I’m fairly certain I’m using split tunnelling with macOS on Wireguard, and I’m fairly certain you are doing so as well.

But why are you adding configurations for every website you want to visit to your VPN config? Surely it’s much saner to list the (hopefully static or subnetted) resources in your company, and then let everything else go through your home network?

iaaan•3h ago
It's AI slop. Split tunneling is one of the most basic things you can configure in Wireguard.
scottydelta•2h ago
It's not AI slop, it's 100 percent written by me. I don't think AI can come up with screenshots/gifs and build process etc of my effort. I am very interested in seeing split tunneling on MacOS on wireguard.

Infact you search Google for 'split tunneling on macos in wireguard ', even Google will tell you that it's only supported via terminal and that's what I did:

> While WireGuard itself doesn't inherently offer split tunneling on macOS, it's possible to achieve this functionality through manual configuration or using a third-party VPN client that supports it. Some VPN providers like Mullvad VPN and ExpressVPN include split tunneling features in their macOS apps. Alternatively, you can configure split tunneling manually using macOS Network settings and Terminal commands, though this method is more complex and may not be suitable for all users.

scottydelta•2h ago
I am not adding IP of every website I want to visit. I am adding IP of the website that I don't want to traffic through my VPN. It's my private vpn with pihole on it which is always running. Right now you cannot blacklist traffic for ips on wireguard as in not send traffic of an IP via wireguard.

Here is a reddit thread from Wireguard subreddit discussing this problem and please read the comments how split tunneling is not supported: https://www.reddit.com/r/WireGuard/s/0Tdf0P9mNj

slau•2h ago
That entire thread is full of people saying it works fine and has been for years.

I think maybe you just misunderstand how the wireguard config works.

scottydelta•2h ago
What you are talking is allowed IPs. How do you disallow IPs

Even this article shows a python script approach so I made mine as a client. https://www.lautenbacher.io/en/lamp-en/wireguard-exclude-a-s...

May be my use of split tunneling terminology is wrong?

slau•1h ago
Yes, it is wrong. You just misunderstand how routing works.

Say you’re at work, and the office router (192.168.1.1) gives you access to 10.3.0.0/16. This is where your company’s cloud is or whatever. You want all your traffic to go through your home network for whatever convoluted reason, except for the 10.3 stuff.

You just add

PreUp = ip route add 10.3.0.0/16 via 192.168.1.1 dev eth0

And

AllowedIPs = 0.0.0.0/0

(Edit: remember to add a post up)

And bam, you’re done. No crazy allowedip rules. When your computer generates packets to the company cloud, your OS won’t even try to talk to the VPN. Because the route table makes it go somewhere else entirely.

I don’t know if this was the exact use-case you described in your blog, but I’m sure you can figure it out from here.

Oh and this is also fully documented online in many places, including the AllowedIPs Calculator: https://www.procustodibus.com/blog/2021/03/wireguard-allowed...

scottydelta•1h ago
PreUp doesn't work with Wireguard MacOS official client: https://www.reddit.com/r/WireGuard/comments/1dd3jhl/is_there...

From the above thread:

> The official macOS app doesn’t support that as it integrates with the VPNKit API to support macOS features like on demand VPN. But you could install wg-quick vie homebrew I believe that could support every option Linux does. But not sure as I am not using the brew version but only the App as the on demand feature is more important to me.

Upcoming deprecation of GitHub Command Palette feature preview

https://github.blog/changelog/2025-07-15-upcoming-deprecation-of-github-command-palette-feature-preview/
1•asib•51s ago•0 comments

Ask HN: How to isolate a single voice in JavaScript?

1•pas256•7m ago•0 comments

We Built a Conspiracy Mapping Tool Inspired by the Artist Who Had the FBI Knock

https://whalehunting.projectbrazen.com/we-built-a-conspiracy-mapping-tool-inspired-by-the-artist-who-had-the-fbi-knocking/
1•felineflock•9m ago•0 comments

The Interview Question That Tells Me Everything

https://medium.com/@jensenbox/the-interview-question-that-tells-me-everything-1083ac8a35de
1•jensenbox•11m ago•0 comments

Astronomers Discover Rare Distant Object in Sync with Neptune

https://pweb.cfa.harvard.edu/news/astronomers-discover-rare-distant-object-sync-neptune
1•MaysonL•11m ago•0 comments

Ask HN: Bad at Interviewing

1•biskquickest•11m ago•0 comments

The Art and Science of Context Engineering for AI Code Reviews

https://www.coderabbit.ai/blog/the-art-and-science-of-context-engineering
1•aravindputrevu•13m ago•0 comments

Show HN: Drag to sort card UI (CodePen demo)

https://codepen.io/turbokit/pen/MYwRrMj
1•turbokit•15m ago•0 comments

Second Me: an open-source prototype where you craft your own AI self

https://github.com/mindverse/Second-Me
2•mountainview•19m ago•0 comments

Energy Efficient Buildings with Walls, Floors and Ceilings Like Elephant Ears

https://drexel.edu/news/archive/2025/July/vascular-building-materials
1•gnabgib•20m ago•0 comments

Hands-On Machine Learning with Scikit-Learn and PyTorch

https://www.oreilly.com/library/view/hands-on-machine-learning/9798341607972/
1•leopoldj•20m ago•0 comments

Meta Hires Two Key Apple AI Experts After Poaching Their Boss

https://www.bloomberg.com/news/articles/2025-07-17/meta-hires-two-key-apple-ai-experts-after-poaching-their-boss
2•mfiguiere•22m ago•0 comments

Lessons I'd Tell My 12-Year-Old Self

https://henriquegodoy.com/blog/reflections
1•henriquegodoy•27m ago•0 comments

Tintin: Why a Belgian Boy Reporter Feels Like He Belongs to the World

https://medium.com/@jessenazario/tintin-why-a-belgian-boy-reporter-feels-like-he-belongs-to-the-world-0bd579443420
2•thunderbong•32m ago•0 comments

Lina Khan explains the FTC to Twitch streamers [video]

https://www.youtube.com/watch?v=sVayhzmuSFE
1•momojo•32m ago•0 comments

Beware of 'Swiper,' a Fox at Grand Teton Park with a Penchant for Footwear

https://www.nytimes.com/2025/07/17/us/beware-of-swiper-a-fox-at-grand-teton-park-with-a-penchant-for-footwear.html
3•JumpCrisscross•33m ago•0 comments

Iceberg, the Right Idea – The Wrong Spec – Part 2 of 2: The Spec

https://database-doctor.com/posts/iceberg-is-wrong-2.html
1•karsinkk•33m ago•0 comments

My favorite use-case for AI is writing logs

https://newsletter.vickiboykis.com/archive/my-favorite-use-case-for-ai-is-writing-logs/
7•todsacerdoti•34m ago•0 comments

Replacing bread with oat β-glucan bread fails to lower diabetes risk markers

https://medicalxpress.com/news/2025-06-daily-bread-oat-glucan-key.html
2•PaulHoule•35m ago•0 comments

Reducing the Cybersecurity Risks of Portable Storage Media in OT Environments [pdf]

https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1334.ipd.pdf
1•gnabgib•36m ago•0 comments

GitHub abused to distribute payloads on behalf of malware-as-a-service

https://arstechnica.com/security/2025/07/malware-as-a-service-caught-using-github-to-distribute-its-payloads/
2•coloneltcb•37m ago•0 comments

Created a Jeopardy trainer using archived questions

https://github.com/ammiranda/jeopardy_archive_trainer
3•ammiranda•38m ago•1 comments

I want to help automate your business insights

https://www.trynexus.io/
1•nikpil•49m ago•1 comments

Humans used to have straighter teeth – what changed?

https://www.nationalgeographic.com/health/article/crooked-teeth-human-evolution-jaw-size
1•bookofjoe•50m ago•1 comments

The Silicon Valley push to breed super-babies

https://www.washingtonpost.com/technology/2025/07/16/orchid-polygenic-screening-embryos-fertility/
2•pabs3•50m ago•2 comments

Running NetBSD on my Amiga 4000

http://sandervanderburg.blogspot.com/2025/02/running-netbsd-on-my-amiga-4000.html
4•doener•52m ago•1 comments

Running Linux on my Amiga 4000

http://sandervanderburg.blogspot.com/2025/01/running-linux-on-my-amiga-4000.html
2•doener•52m ago•0 comments

Conferences, Clarity, and Smokescreens

https://infrequently.org/2025/06/conferences-clarity-and-smokescreens/
1•pragmatic•53m ago•0 comments

What everyone gets wrong about AI customer support

https://www.mux.com/blog/all-the-wrong-ways-to-think-about-ai-customer-support
1•dylanjha•55m ago•0 comments

No vegan milk is equivalent to dairy, nutritionists conclude

https://www.thetimes.com/life-style/health-fitness/article/plant-based-milk-cows-nutrition-ct7dlbxgl
2•josephcsible•56m ago•2 comments