├── .gitignore ├── .travis.yml ├── Makefile ├── README.md ├── apple.c ├── apple.h ├── base.c ├── base.h ├── base64.c ├── base64.h ├── debian ├── changelog ├── compat ├── control ├── copyright ├── init.d ├── postinst ├── postrm ├── redsocks.8 ├── redsocks.conf ├── redsocks.default ├── redsocks.docs ├── redsocks.install ├── redsocks.manpages ├── rules ├── source │ └── format └── watch ├── debug.c ├── dnstc.c ├── dnstc.h ├── dnsu2t.c ├── dnsu2t.h ├── doc ├── balabit-TPROXY-README.txt ├── iptables-packet-flow-ng.png ├── iptables-packet-flow.png ├── rfc1928-socks5.txt ├── rfc1929-socks5-auth.txt ├── rfc1961-socks5-gssapi.txt ├── rfc2617-http-authentication.txt ├── rfc2817-http-connect.txt ├── rfc3089-socks-ipv6.txt ├── socks4.protocol.txt └── socks4a.protocol.txt ├── http-auth.c ├── http-auth.h ├── http-connect.c ├── http-relay.c ├── libc-compat.h ├── libevent-compat.h ├── list.h ├── log.c ├── log.h ├── main.c ├── main.h ├── md5.c ├── md5.h ├── parser.c ├── parser.h ├── redsocks.c ├── redsocks.conf.example ├── redsocks.h ├── redsocks.service ├── redudp.c ├── redudp.h ├── socks4.c ├── socks5.c ├── socks5.h ├── tdestroy.c ├── tests ├── build ├── cleanup ├── conftest.py ├── dante │ ├── Dockerfile │ ├── danted-1080.conf │ ├── danted-1081.conf │ └── danted-waitif ├── inetd │ ├── Dockerfile │ └── testing ├── login ├── prlimit-nofile.c ├── regw │ ├── Dockerfile │ └── redsocks.conf ├── run ├── squid │ ├── Dockerfile │ ├── basic.passwd │ ├── digest.passwd │ ├── squid-8.conf │ └── squid-9.conf ├── tank │ ├── Dockerfile │ └── benchmark.py ├── test_smoke.py └── web │ └── Dockerfile ├── timer.h ├── tools └── git-repack.sh ├── tsearch.c ├── tsearch.h ├── utils.c ├── utils.h └── version.h /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | config.h 3 | tags 4 | redsocks 5 | .depend 6 | /gen 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/.travis.yml -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/README.md -------------------------------------------------------------------------------- /apple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/apple.c -------------------------------------------------------------------------------- /apple.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/apple.h -------------------------------------------------------------------------------- /base.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/base.c -------------------------------------------------------------------------------- /base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/base.h -------------------------------------------------------------------------------- /base64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/base64.c -------------------------------------------------------------------------------- /base64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/base64.h -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/changelog -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/control -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/copyright -------------------------------------------------------------------------------- /debian/init.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/init.d -------------------------------------------------------------------------------- /debian/postinst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/postinst -------------------------------------------------------------------------------- /debian/postrm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/postrm -------------------------------------------------------------------------------- /debian/redsocks.8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/redsocks.8 -------------------------------------------------------------------------------- /debian/redsocks.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/redsocks.conf -------------------------------------------------------------------------------- /debian/redsocks.default: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/redsocks.default -------------------------------------------------------------------------------- /debian/redsocks.docs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/redsocks.docs -------------------------------------------------------------------------------- /debian/redsocks.install: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/redsocks.install -------------------------------------------------------------------------------- /debian/redsocks.manpages: -------------------------------------------------------------------------------- 1 | debian/redsocks.8 2 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/rules -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/watch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debian/watch -------------------------------------------------------------------------------- /debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/debug.c -------------------------------------------------------------------------------- /dnstc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/dnstc.c -------------------------------------------------------------------------------- /dnstc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/dnstc.h -------------------------------------------------------------------------------- /dnsu2t.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/dnsu2t.c -------------------------------------------------------------------------------- /dnsu2t.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/dnsu2t.h -------------------------------------------------------------------------------- /doc/balabit-TPROXY-README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/balabit-TPROXY-README.txt -------------------------------------------------------------------------------- /doc/iptables-packet-flow-ng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/iptables-packet-flow-ng.png -------------------------------------------------------------------------------- /doc/iptables-packet-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/iptables-packet-flow.png -------------------------------------------------------------------------------- /doc/rfc1928-socks5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/rfc1928-socks5.txt -------------------------------------------------------------------------------- /doc/rfc1929-socks5-auth.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/rfc1929-socks5-auth.txt -------------------------------------------------------------------------------- /doc/rfc1961-socks5-gssapi.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/rfc1961-socks5-gssapi.txt -------------------------------------------------------------------------------- /doc/rfc2617-http-authentication.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/rfc2617-http-authentication.txt -------------------------------------------------------------------------------- /doc/rfc2817-http-connect.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/rfc2817-http-connect.txt -------------------------------------------------------------------------------- /doc/rfc3089-socks-ipv6.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/rfc3089-socks-ipv6.txt -------------------------------------------------------------------------------- /doc/socks4.protocol.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/socks4.protocol.txt -------------------------------------------------------------------------------- /doc/socks4a.protocol.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/doc/socks4a.protocol.txt -------------------------------------------------------------------------------- /http-auth.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/http-auth.c -------------------------------------------------------------------------------- /http-auth.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/http-auth.h -------------------------------------------------------------------------------- /http-connect.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/http-connect.c -------------------------------------------------------------------------------- /http-relay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/http-relay.c -------------------------------------------------------------------------------- /libc-compat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/libc-compat.h -------------------------------------------------------------------------------- /libevent-compat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/libevent-compat.h -------------------------------------------------------------------------------- /list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/list.h -------------------------------------------------------------------------------- /log.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/log.c -------------------------------------------------------------------------------- /log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/log.h -------------------------------------------------------------------------------- /main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/main.c -------------------------------------------------------------------------------- /main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/main.h -------------------------------------------------------------------------------- /md5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/md5.c -------------------------------------------------------------------------------- /md5.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/md5.h -------------------------------------------------------------------------------- /parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/parser.c -------------------------------------------------------------------------------- /parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/parser.h -------------------------------------------------------------------------------- /redsocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/redsocks.c -------------------------------------------------------------------------------- /redsocks.conf.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/redsocks.conf.example -------------------------------------------------------------------------------- /redsocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/redsocks.h -------------------------------------------------------------------------------- /redsocks.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/redsocks.service -------------------------------------------------------------------------------- /redudp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/redudp.c -------------------------------------------------------------------------------- /redudp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/redudp.h -------------------------------------------------------------------------------- /socks4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/socks4.c -------------------------------------------------------------------------------- /socks5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/socks5.c -------------------------------------------------------------------------------- /socks5.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/socks5.h -------------------------------------------------------------------------------- /tdestroy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tdestroy.c -------------------------------------------------------------------------------- /tests/build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/build -------------------------------------------------------------------------------- /tests/cleanup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/cleanup -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/dante/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/dante/Dockerfile -------------------------------------------------------------------------------- /tests/dante/danted-1080.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/dante/danted-1080.conf -------------------------------------------------------------------------------- /tests/dante/danted-1081.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/dante/danted-1081.conf -------------------------------------------------------------------------------- /tests/dante/danted-waitif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/dante/danted-waitif -------------------------------------------------------------------------------- /tests/inetd/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/inetd/Dockerfile -------------------------------------------------------------------------------- /tests/inetd/testing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/inetd/testing -------------------------------------------------------------------------------- /tests/login: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/login -------------------------------------------------------------------------------- /tests/prlimit-nofile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/prlimit-nofile.c -------------------------------------------------------------------------------- /tests/regw/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/regw/Dockerfile -------------------------------------------------------------------------------- /tests/regw/redsocks.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/regw/redsocks.conf -------------------------------------------------------------------------------- /tests/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | exec py.test -v "$@" 4 | -------------------------------------------------------------------------------- /tests/squid/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/squid/Dockerfile -------------------------------------------------------------------------------- /tests/squid/basic.passwd: -------------------------------------------------------------------------------- 1 | basic_user:$apr1$bslox4us$3RXJauJbX8riqzVzzOYc70 2 | -------------------------------------------------------------------------------- /tests/squid/digest.passwd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/squid/digest.passwd -------------------------------------------------------------------------------- /tests/squid/squid-8.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/squid/squid-8.conf -------------------------------------------------------------------------------- /tests/squid/squid-9.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/squid/squid-9.conf -------------------------------------------------------------------------------- /tests/tank/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/tank/Dockerfile -------------------------------------------------------------------------------- /tests/tank/benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/tank/benchmark.py -------------------------------------------------------------------------------- /tests/test_smoke.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/test_smoke.py -------------------------------------------------------------------------------- /tests/web/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tests/web/Dockerfile -------------------------------------------------------------------------------- /timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/timer.h -------------------------------------------------------------------------------- /tools/git-repack.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tools/git-repack.sh -------------------------------------------------------------------------------- /tsearch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tsearch.c -------------------------------------------------------------------------------- /tsearch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/tsearch.h -------------------------------------------------------------------------------- /utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/utils.c -------------------------------------------------------------------------------- /utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/utils.h -------------------------------------------------------------------------------- /version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samyk/redsocks/HEAD/version.h --------------------------------------------------------------------------------