Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple SOCKS5 Server

A simple SOCKS5 server that enables one-click local SOCKS5 proxy service with authentication and upstream proxy support.

Features

  • ✅ Quick start SOCKS5 proxy server
  • ✅ Username/password authentication support
  • ✅ Upstream proxy support (HTTP/SOCKS5)
  • ✅ Proxy chain support

Usage

Basic Usage

# Listen on 0.0.0.0:1080 by default
./socks5d 

# Specify listen address
./socks5d 0.0.0.0:8080

# Set username and password authentication
./socks5d 0.0.0.0:8080 username password

Upstream Proxy Configuration

# Use SOCKS5 upstream proxy (without authentication)
./socks5d 0.0.0.0:8080 socks5://proxy.example.com:1080

# Use SOCKS5 upstream proxy (with authentication)
./socks5d 0.0.0.0:8080 socks5://user:[email protected]:1080

# Use HTTP upstream proxy
./socks5d 0.0.0.0:8080 http://proxy.example.com:8080

# Use HTTP upstream proxy (with authentication)
./socks5d 0.0.0.0:8080 http://user:[email protected]:8080

# Set both authentication and upstream proxy
./socks5d 0.0.0.0:8080 myuser mypass socks5://upstream.proxy.com:1080

Parameters

socks5d [listenAddr] [username] [password] [proxyURL]
  • listenAddr: Listen address, default 0.0.0.0:1080
  • username: Optional username (for local SOCKS5 server authentication)
  • password: Optional password (for local SOCKS5 server authentication)
  • proxyURL: Optional upstream proxy
    • Format: http://host:port or socks5://host:port
    • With authentication: socks5://user:pass@host:port

Build

go build

Use Cases

  1. Simple proxy server: Quickly start a SOCKS5 proxy locally
  2. Proxy chain: Implement multi-level proxy forwarding through upstream proxy
  3. Network debugging: Debug network requests with authentication

About

A simple SOCKS5 server that enables one-click startup of a local SOCKS5 proxy service and supports simple authentication settings.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages