A tunneling client for Pangolin https://docs.fossorial.io
  • Go 91.1%
  • Shell 5.6%
  • Python 1.1%
  • Nix 1.1%
  • Makefile 0.8%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-20 16:33:47 -04:00
.github chore(deps): bump the github-actions-dependencies group with 4 updates 2026-09-21 09:44:21 +00:00
authdaemon Quiet some logs 2026-06-05 17:09:58 -07:00
bind add test for magic packets 2026-08-03 12:14:21 -04:00
browsergateway Add some preflight check for vnc reachability 2026-06-09 16:01:45 -07:00
clients Add support for client identities in http requests 2026-10-12 16:57:05 -04:00
device Make ipc cross platform 2025-12-08 12:17:11 -05:00
docker refactor: update Docker client imports and adjust container handling logic 2026-05-10 10:50:38 +02:00
examples Make logger extensible 2025-11-17 13:49:43 -05:00
exitnode move exit node ping to module 2026-07-30 16:46:30 -04:00
healthcheck Dont time out the health checks for http 2026-06-08 15:27:08 -07:00
holepunch Resolve exit node endpoints over whichever address family is reachable 2026-09-24 14:34:08 -04:00
internal Support importing into the cli 2026-09-15 11:08:47 -04:00
logger Working on more hp 2025-12-03 20:49:46 -05:00
nativessh Support commands over the ssh tunnel 2026-06-05 13:55:43 -07:00
netstack2 Add support for client identities in http requests 2026-10-12 16:57:05 -04:00
network Route watch working 2026-10-01 14:28:00 -04:00
newt Merge branch 'main' into dev 2026-10-20 15:41:07 -04:00
newtconfig Add aliases for new SITE_ vars 2026-09-15 11:08:47 -04:00
packages Add PKGBUILD 2026-07-07 13:09:53 -04:00
proxy Fix the sync causing proxy to freak out 2026-07-02 11:51:29 -04:00
public/screenshots Update readme 2025-07-28 12:02:10 -07:00
testing Add some test scripts for ws and move to testing/ 2026-04-29 15:57:31 -07:00
updates Add agent and agent version 2026-09-15 11:08:47 -04:00
util Resolve exit node endpoints over whichever address family is reachable 2026-09-24 14:34:08 -04:00
websocket add funcs to add and remove ip from interface 2026-07-31 10:34:07 -04:00
wgtester Quiet up logs 2025-12-22 14:31:44 -05:00
.dockerignore Properly ignore bin 2026-07-02 17:19:59 -04:00
.env.example Update example domain 2026-02-16 17:54:19 -08:00
.gitignore chore: add direnv and nix result dirs to gitignore 2025-12-22 19:43:48 -05:00
.go-version Update go version 2026-09-15 11:08:48 -04:00
authdaemon.go Refactor 2026-06-29 11:55:27 -04:00
CONTRIBUTING.md Update domain 2025-10-19 15:12:15 -07:00
docker-compose.metrics.collector.yml Adding OpenTelemetry Metrics and Tracing 2025-10-11 18:19:51 +02:00
docker-compose.metrics.yml Adding OpenTelemetry Metrics and Tracing 2025-10-11 18:19:51 +02:00
docker-compose.yml Update example domain 2026-02-16 17:54:19 -08:00
Dockerfile Update builder 2026-09-15 11:11:04 -04:00
entrypoint.sh Allow use of env vars 2025-01-07 20:51:33 -05:00
flake.lock chore(nix): use nixpkgs-unstable branch and update flake inputs 2025-12-03 23:33:47 -05:00
flake.nix Update flake 2026-10-20 16:33:27 -04:00
get-newt.sh Update log message 2026-05-11 10:34:30 -07:00
go.mod chore(deps): bump the go-dependencies group across 1 directory with 16 updates 2026-10-14 17:01:18 +00:00
go.sum chore(deps): bump the go-dependencies group across 1 directory with 16 updates 2026-10-14 17:01:18 +00:00
LICENSE Add license 2025-01-04 21:22:32 -05:00
main.go Add agent and agent version 2026-09-15 11:08:47 -04:00
Makefile Merge branch 'main' into dev 2026-05-28 15:38:46 -07:00
newt.iss Update iss 2026-02-25 14:57:32 -08:00
README.md Add phase out notice 2026-09-15 11:08:47 -04:00
reexec_unix.go Add restart endpoint 2026-05-28 15:38:09 -07:00
reexec_windows.go Windows restart and service restart 2026-07-01 15:18:29 -04:00
SECURITY.md Update domain 2025-10-19 15:12:15 -07:00
self-signed-certs-for-mtls.sh feat/mtls-support-cert-script 2025-03-31 00:52:48 +02:00
service_unix.go Kind of working 2025-12-10 15:32:49 -05:00
service_windows.go Windows restart and service restart 2026-07-01 15:18:29 -04:00
stub.go Kind of working - revert if not 2025-11-26 17:57:27 -05:00
updown.py Add updown script capabilities 2025-03-07 12:35:46 -05:00

Newt

PkgGoDev GitHub License Go Report Card

Note

Newt is being phased out in favor of the Pangolin CLI. Use pangolin site up

Newt is a fully user space WireGuard tunnel client and TCP/UDP proxy, designed to securely expose private resources controlled by Pangolin. By using Newt, you don't need to manage complex WireGuard tunnels and NATing.

Installation and Documentation

Newt is used with Pangolin and Gerbil as part of the larger system. See documentation below:

Key Functions

Registers with Pangolin

Using the Newt ID and a secret, the client will make HTTP requests to Pangolin to receive a session token. Using that token, it will connect to a websocket and maintain that connection. Control messages will be sent over the websocket.

Receives WireGuard Control Messages

When Newt receives WireGuard control messages, it will use the information encoded (endpoint, public key) to bring up a WireGuard tunnel using netstack fully in user space. It will ping over the tunnel to ensure the peer on the Gerbil side is brought up.

Receives Proxy Control Messages

When Newt receives WireGuard control messages, it will use the information encoded to create a local low level TCP and UDP proxies attached to the virtual tunnel in order to relay traffic to programmed targets.

Build

Binary

Make sure to have Go 1.25 installed.

make

Nix Flake

nix build

Binary will be at ./result/bin/newt

Development shell available with nix develop

Licensing

Newt is dual licensed under the AGPLv3 and the Fossorial Commercial license. For inquiries about commercial licensing, please contact us.

Contributions

Please see CONTRIBUTIONS in the repository for guidelines and best practices.