Home

Awesome

Socks proxy

Socks proxy server written in one C file. Supports socks4, socks4a and socks5 protocols without binding and udp stuff. Can be used as example how to write your own.

Build status and CI pipeline link

Build Status

Proto

Socks5 proto

Socks5 userpass auth proto

Socks4 proto

Socks4a proto

Works on

Every OS which supports POSIX

TODO

  1. TCP port binding
  2. UDP port binding

Usage

[-h] - print usage

[-n PORT] - set port to listen

[-a AUTHTYPE] - set authtype: 0 for NOAUTH, 2 for USERPASS

[-u USERNAME] - set username for userpass authtype

[-p PASSWORD] - set password for userpass authtype

[-l LOGFILE] - set file for logging output

Build and run

No additional requirements, only compiler or crosscompiler needed

make
make test
./proxy