tunsub

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT

README

Description

This is a simple vpn tunnel based on (this)[https://github.com/goxray/tun] library. It handles user systemd service.

Installation

Using go install:

go install github.com/niakr1s/tunsub/cmd/tunsub@latest
# by default it's being installed under ~/go/bin/tunsub, so make sure it's in your PATH

# now we must ensure it will run privileged, to do so run after installation once:
tunsub privileged

Usage

# First, download your subscription:
wget -O ~/sub.txt https://your.subscription.url

# Then, install the service:
tunsub install -s ~/sub.txt -n 1 # server is on line 1

# Then you can handle it using systemd commands:
systemd --user stop tunsub
systemd --user start tunsub

# Whenever you'll want to change server, just install the service again:
tunsub install -s ~/sub.txt -n 2 # new server is on line 2

# You can uninstall the service:
tunsub uninstall

Directories

Path Synopsis
cmd
tunsub command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL