Skip to content

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

License

Notifications You must be signed in to change notification settings

OmarTariq612/socks-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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