{"id":30358131,"url":"https://github.com/davyjonescodes/wireguardnamespace","last_synced_at":"2026-05-09T02:35:54.891Z","repository":{"id":298073241,"uuid":"998768499","full_name":"DavyJonesCodes/WireguardNamespace","owner":"DavyJonesCodes","description":"Create isolated Linux network namespaces optionally routed through WireGuard VPN for sandboxed applications, regional testing, or privacy control.","archived":false,"fork":false,"pushed_at":"2025-06-09T08:44:58.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-09T09:26:27.277Z","etag":null,"topics":["bash","namespace","networking","vpn","wireguard"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavyJonesCodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-09T08:10:26.000Z","updated_at":"2025-06-09T08:45:02.000Z","dependencies_parsed_at":"2025-06-09T09:37:45.429Z","dependency_job_id":null,"html_url":"https://github.com/DavyJonesCodes/WireguardNamespace","commit_stats":null,"previous_names":["davyjonescodes/wireguardnamespace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DavyJonesCodes/WireguardNamespace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesCodes%2FWireguardNamespace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesCodes%2FWireguardNamespace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesCodes%2FWireguardNamespace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesCodes%2FWireguardNamespace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavyJonesCodes","download_url":"https://codeload.github.com/DavyJonesCodes/WireguardNamespace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesCodes%2FWireguardNamespace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271129123,"owners_count":24703879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","namespace","networking","vpn","wireguard"],"created_at":"2025-08-19T09:15:14.995Z","updated_at":"2026-05-09T02:35:54.860Z","avatar_url":"https://github.com/DavyJonesCodes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WireguardNamespace\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/DavyJonesCodes/WireguardNamespace/main/assets/logo.png\" alt=\"Logo\" height=\"128px\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/bash-4EAA25?style=for-the-badge\u0026logo=gnubash\u0026logoColor=white\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/DavyJonesCodes/WireguardNamespace?style=for-the-badge\"/\u003e\n\u003c/p\u003e\n\n**WireguardNamespace** is a standalone Bash script for setting up isolated Linux network namespaces with optional WireGuard VPN routing. It's ideal for sandboxing applications, routing specific programs through VPNs, or testing in a clean network environment.\n\n---\n\n## ✨ Features\n\n- 🧱 **Namespace Isolation**: Create isolated network spaces for apps or testing.\n- 🔐 **WireGuard Support**: Automatically connects VPN via `wg-quick` (if enabled).\n- 🧹 **Clean Teardown**: Easily delete namespace, interfaces, and routing rules.\n- 🏷️ **Custom Naming**: Use `--name \u003cnamespace\u003e` to manage multiple namespaces.\n- 🚫 **VPN Optional**: Use `--no-vpn` for direct internet access without tunneling.\n\n---\n\n## 🚀 Usage\n\n```bash\nsudo ./WireguardNamespace.sh [--name \u003cnamespace\u003e] [interface] [--no-vpn] [--teardown]\n````\n\n### Arguments\n\n| Option       | Description                                                      |\n| ------------ | ---------------------------------------------------------------- |\n| `--name`     | Set custom namespace name (default: `vpnspace`)                  |\n| `--no-vpn`   | Skip VPN setup (provides regular internet in namespace)          |\n| `--teardown` | Remove namespace, veth, and NAT rules                            |\n| `interface`  | Network interface to use (e.g. `eth0`). Auto-selected if omitted |\n\n---\n\n### ✅ Examples\n\n```bash\n# Default setup with VPN\nsudo ./WireguardNamespace.sh\n\n# Create isolated namespace without VPN\nsudo ./WireguardNamespace.sh --no-vpn\n\n# Create a custom namespace called 'research'\nsudo ./WireguardNamespace.sh --name research\n\n# Teardown custom namespace\nsudo ./WireguardNamespace.sh --name research --teardown\n```\n\n---\n\n## 📦 Requirements\n\n* Linux with:\n\n  * `ip`, `iptables`, `wg-quick`, `curl`, `jq`\n* A valid WireGuard config (default path is `/etc/wireguard/wg0.conf`)\n* Root privileges (`sudo`)\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n\n---\n\n## 🤝 Contributing\n\nWant to improve this script or add new features? Feel free to fork and submit a pull request. Ideas and suggestions welcome!\n\n---\n\n## 📬 Support\n\nOpen an issue or email [devjonescodes@gmail.com](mailto:devjonescodes@gmail.com) if you need help or want to collaborate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavyjonescodes%2Fwireguardnamespace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavyjonescodes%2Fwireguardnamespace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavyjonescodes%2Fwireguardnamespace/lists"}