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
Owen Schwartz 1121ac5357
Merge pull request #435 from totalolage/fix/normalize-client-interface-cidr
fix: accept bare site addresses in client WireGuard config
2026-08-24 12:02:19 -04:00
.github chore(deps): bump the github-actions-dependencies group across 1 directory with 9 updates 2026-07-02 21:13:13 +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 fix: accept bare site addresses in client WireGuard config 2026-08-20 20:48:31 +02: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 Groundwork for monitoring and updating the dns 2026-06-29 11:55:27 -04:00
internal testdata: add expected telemetry metrics for connection attempts and events 2025-10-28 23:17:05 +01: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 fallback self signed cert so not locked out 2026-07-22 16:50:45 -04:00
network Support reliable SECONDARY address adding 2026-08-13 10:49:13 -04:00
newt Merge branch 'aig' into dev 2026-08-19 16:36:55 -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 Update language to be more clear 2026-08-07 14:55:54 -04:00
util Allow passing public dns into resolve 2026-03-12 16:41:41 -07: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 2025-08-28 17:32:27 +02:00
authdaemon.go Refactor 2026-06-29 11:55:27 -04:00
config.go Support all config in file 2026-07-01 14:41:12 -04:00
config_test.go Support all config in file 2026-07-01 14:41:12 -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 Add advantech router app updates 2026-05-28 15:38:09 -07: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 chore(nix): fix hash for updated go dependencies 2026-07-02 15:56:05 +00:00
get-newt.sh Update log message 2026-05-11 10:34:30 -07:00
go.mod chore(deps): bump the go-dependencies group with 18 updates 2026-07-02 15:54:58 +00:00
go.sum chore(deps): bump the go-dependencies group with 18 updates 2026-07-02 15:54:58 +00:00
LICENSE Add license 2025-01-04 21:22:32 -05:00
main.go Refactor 2026-06-29 11:55:27 -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 Update readme 2025-12-10 16:24:22 -05: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

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.