OmarTariq612 / socks-server

A simple socks server that supports (socks 5 / socks 4 / socks 4a) clients.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

socks server implementation

socks-server is a simple socks proxy server implementation that supports ( socks5 / socks4 / socks4a ) clients.

Build

go build .

Usage

./socks-server -h
Usage of socks-server:
  -bind string
        socks server bind address (default ":5555")
  -dns string
        specify a dns server (ip:port) to be used for resolving domains
./socks-server -bind :1080 -dns 8.8.8.8:53
2022/10/03 06:45:17 dns server 8.8.8.8:53
2022/10/03 06:45:17 Serving on :1080



Now the server is ready to accept connections and handle them.

TODO

socks5

  • connect
  • bind
  • udp associate

socks4a

  • connect
  • bind

REF

About

A simple socks server that supports (socks 5 / socks 4 / socks 4a) clients.

License:MIT License


Languages

Language:Go 100.0%