• Stars
    star
    213
  • Rank 185,410 (Top 4 %)
  • Language
    C
  • License
    The Unlicense
  • Created about 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

socks5 proxy server in C

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