Skip to content

skywalker365/socks_proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

socks5 proxy server in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.4%
  • Shell 11.5%
  • Makefile 2.1%