tunn

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Tunn - SSH Tunneling Tool

A cross-platform SSH tunneling tool that creates secure connections through direct connections over WebSocket and HTTP proxies.

Features

  • Multiple tunnel modes: Direct connection and Proxy
  • WebSocket-based SSH tunnels for better bypass capabilities
  • SOCKS5 and HTTP proxy support
  • Domain spoofing capabilities
  • Cross-platform (Windows, Linux, macOS)

Installation

Download the latest binary from the releases page or build from source:

go install github.com/FreeNetLabs/tunn@latest

Quick Start

  1. Generate a configuration file:
tunn config generate --mode direct --output config.json
  1. Edit the configuration with your details:
{
  "mode": "direct",
  "ssh": {
    "host": "www.ayanrajpoot.net",
    "port": 80,
    "username": "abc",
    "password": "1234"
  },
  "listener": {
    "port": 1080,
    "proxyType": "http"
  },
  "httpPayload": "GET / HTTP/1.1[crlf]Host: api.ril.com[crlf]Upgrade: websocket[crlf][crlf]",
  "connectionTimeout": 30
}
  1. Run Tunn:
tunn --config config.json
  1. Configure your applications to use the proxy at 127.0.0.1:1080

Configuration

Tunnel Modes
  • Direct Mode: Direct connection with optional domain spoofing
  • Proxy Mode: Routes through HTTP proxy → WebSocket → SSH server
Required Fields
  • mode: "direct" or "proxy"
  • ssh.host: SSH server hostname
  • ssh.username and ssh.password: SSH credentials
Optional Fields
  • listener.port: Local proxy port (default: 1080)
  • listener.proxyType: "socks5" or "http" (default: "socks5")
  • connectionTimeout: Connection timeout in seconds (default: 30)

Usage Examples

Browser Configuration

Set your browser to use HTTP/SOCKS5 proxy at 127.0.0.1:1080

System-Wide Proxy

Configure your system proxy settings to use 127.0.0.1:1080 (SOCKS5) or 127.0.0.1:1080 (HTTP) for system-wide tunneling.

License

MIT License - see LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg
ssh

Jump to

Keyboard shortcuts

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