macOS
brew install vpn-slicelocal Homebrew formula metadata
sudo port install vpn-sliceMacPorts ports tree · net/vpn-slice/Portfile · source: api.github.com
brew / rank 4031
Vpnc-script replacement for easy and secure split-tunnel VPN setup. Version 0.16.1 via Homebrew; verified 2026-07-10. Also installable with nix: nix profile install nixpkgs#vpn-slice.
install
brew install vpn-slicelocal Homebrew formula metadata
sudo port install vpn-sliceMacPorts ports tree · net/vpn-slice/Portfile · source: api.github.com
sudo apk add vpn-sliceAlpine Linux edge package indexes · vpn-slice · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#vpn-slicenixpkgs package indexes · pkgs/by-name/vp/vpn-slice/package.nix · source: api.github.com
overview
Vpnc-script replacement for easy and secure split-tunnel VPN setup
history
vpn-slice is a Python replacement for the vpnc-script hook used by OpenConnect and VPNC. Its purpose is split-tunnel VPN setup: route only selected hosts or subnets through the VPN while leaving ordinary network traffic on the normal interface.
The project grew out of a long-standing OpenConnect/VPNC architecture in which the VPN client handles the tunnel connection but delegates operating-system routing and DNS changes to an external script, traditionally called vpnc-script.
vpn-slice's README presents it as a deliberate alternative to corporate-VPN behavior that reroutes all traffic through the tunnel. It credits an earlier split-tunnelling tutorial for the basic approach, sshuttle's host-discovery options for inspiration, and a community pull request for cleaner OS-dependent separation and macOS support.
The OpenConnect project documents vpn-slice as an alternative script written by one of the OpenConnect developers, focused on limiting VPN-routed traffic to a specific subset. That gives vpn-slice a recognized niche among OpenConnect users who need client-side split tunneling even when the VPN server or corporate client defaults to full-tunnel routing.
Package listings in ecosystems such as PyPI, MacPorts, Alpine, and FreeBSD ports reflect practical adoption by users who combine OpenConnect with scripting-friendly network setup. Its adoption is niche, but the niche is clear: developers and administrators forced to use restrictive VPNs while preserving local Internet routing.
Users invoke vpn-slice as the OpenConnect or VPNC script hook and pass the hosts, domains, or subnets that should be reachable through the tunnel. The tool can resolve named hosts using VPN DNS servers, write temporary host entries, and avoid broad resolver changes outside the VPN slice.
The tool is not intended for privacy VPN use cases where all traffic should go through the tunnel. Its README explicitly frames the use case as minimizing exposure to monitored or filtering corporate VPN networks.
vpn-slice is the kind of small Unix networking tool package managers preserve well: one command that fills a very specific gap between a general VPN client and local routing policy.
Its value is highest for people who already know OpenConnect, vpnc-script, route tables, and DNS side effects; for those users it replaces a fragile personal shell-script wrapper with a maintained upstream tool.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
vpn-slice | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/dlenski/vpn-slice
install metadata
| Package key | brew:vpn-slice |
|---|---|
| Version | 0.16.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/vpn-slice |
| Homepage | https://github.com/dlenski/vpn-slice |
| Repository | https://github.com/dlenski/vpn-slice |
| License | GPL-3.0-or-later |
| Source archive | https://files.pythonhosted.org/packages/74/fd/6c9472e8ed83695abace098d83ba0df4ea48e29e7b2f6c77ced73b9f7dce/vpn-slice-0.16.1.tar.gz |
| Last updated | 2026-07-10T10:09:48-04:00 |
| Pulse | updated |
| Dependencies | python@3.14 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | vpn-slice |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
vpn-slice
nix profile install nixpkgs#vpn-slicevpn-slice 0.16.1-r5
vpnc-script replacement for easy and secure split-tunnel VPN setup
https://github.com/dlenski/vpn-slice
sudo apk add vpn-slicevpn-slice-pyc 0.16.1-r5
Precompiled Python bytecode for vpn-slice
https://github.com/dlenski/vpn-slice
sudo apk add vpn-slice-pycvpn-slice
sudo port install vpn-slicesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.