socks5-server

command module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 2 Imported by: 0

README

socks5-server

A socks5 server written in Golang.

EN | 中文

Travis Go Report Card image image image

Features

  • Support connect
  • Support udp associate
  • Support tcp over tls
  • Support specified interface
  • Support ldap auth

Usage

Usage of /main:
  -l string
        local address (default ":1080")
  -p string
        password
  -u string
        username
  -sk string
        server key file path (default "../certs/server.key")
  -sp string
        server pem file path (default "../certs/server.pem")
  -tls enable tls
  -iface string
        specified interface
  -t int
        dial timeout in seconds (default 30)
  -ldap
        enable ldap auth
  -ldap-addr string
        ldap address (default "127.0.0.1:3890")
  -ldap-base-dn string
        ldap base dn (default "dc=example,dc=com")

Docker

docker image

Run server

docker run  -d --restart=always --net=host \
-p 1080:1080 -p 1080:1080/udp --name socks5-server netbyte/socks5-server -l :1080

Run server with auth

docker run  -d --restart=always --net=host \
-p 1080:1080 -p 1080:1080/udp --name socks5-server netbyte/socks5-server -l :1080 -u root -p 123456

Run server over tls with auth

docker run  -d --restart=always --net=host \
-p 1080:1080 -p 1080:1080/udp --name socks5-server netbyte/socks5-server -l :1080 -u root -p 123456 -tls -sk /app/certs/server.key -sp /app/certs/server.pem

Run server with specified interface

docker run  -d --restart=always --net=host \
-p 1080:1080 -p 1080:1080/udp --name socks5-server netbyte/socks5-server -l :1080 -iface tun0

Run server with ldap

docker run  -d --restart=always --net=host \
-p 1080:1080 -p 1080:1080/udp --name socks5-server netbyte/socks5-server -l :1080  -ldap -ldap-addr 127.0.0.1:3890 -ldap-base-dn dc=example,dc=com

License

The MIT License (MIT)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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