Go to file
kayos@tcp.direct a6969af053
Use pool implementation from common package
2022-10-16 00:28:26 -07:00
.github Update go.yml 2022-08-28 22:49:51 -07:00
example Merge branch 'dev' 2022-09-22 16:45:15 -07:00
internal/randtls Use pool implementation from common package 2022-10-16 00:28:26 -07:00
logger Refactor + Re-use net.Conn for validation 2022-08-28 06:12:48 -07:00
.gitignore Chore: tidy up 2022-07-25 00:14:26 -07:00
LICENSE Add: SetStaleTime, GetStaleTime, GetMaxWorkers 2021-09-13 09:32:07 -07:00
README.md Update README.md 2022-10-03 23:01:09 -07:00
conductor.go Fix: status check 2022-09-28 21:26:10 -07:00
daemons.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
debug.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
defs.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
dispense.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
getters.go Fix and refactor mutexes 2022-10-03 23:01:09 -07:00
go.mod Update go modules 2022-10-03 23:02:30 -07:00
go.sum Update go modules 2022-10-03 23:02:30 -07:00
list_management.go Simplify operation 2022-09-28 16:44:23 -07:00
mr_worldwide.go Consistency related adjustments 2022-09-22 16:48:08 -07:00
mystery_dialer.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
mystery_resolver.go Revert back to original struct name 2022-09-22 16:28:28 -07:00
parse.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
parse_test.go Improve parsing 2022-10-11 17:15:57 -07:00
proto.go dev overhaul milestone (it works) 2022-09-22 16:24:35 -07:00
proxy.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
setters.go Fix and refactor mutexes 2022-09-28 23:20:53 -07:00
socks5_server.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00
stats.go Consistency related adjustments 2022-09-22 16:48:08 -07:00
validator_engine.go Use pool implementation from common package 2022-10-16 00:28:26 -07:00

Prox5

GoDoc Go Report Card IRC

SOCKS5/4/4a validating proxy pool + server

Prox5 is a golang library for managing, validating, and accessing thousands upon thousands of arbitrary SOCKS proxies.

Notably it features interface compatible dialer functions that dial out from different proxies for every connection, and a SOCKS5 server that utilizes those functions.


Initial Validation Sequence

  • TCP Dial to the endpoint
  • HTTPS GET request to a list of IP echo endpoints

Prox5 will then store the endpoint's outward appearing IP address and mark it as valid for use.

Rate Limiting

Using Rate5, prox5 naturally reduces the frequency of proxies that fail to validate. It does this by reducing the frequency proxies are accepted into the validation pipeline the more they fail to verify. This is not yet adjustable, but will be soon. See the documentation for Rate5, and the source for prox5 (defs.go is a good place to start) for more details.

The Secret Sauce

What makes Prox5 special is largely the Mystery Dialer. This dialer satisfies the net.Dialer interface. Upon using the dialer to connect to and endpoint, Prox5:

  • Loads up a previously verified proxy
  • Attempts to make connection with the dial endpoint using said proxy
  • Upon failure, prox5:
    • repeats this process mid-dial
    • does not drop connection to the client
  • Once a proxy has been successfully used to connect to the target endpoint, prox5 passes the same net.Conn onto the client

Accessing Validated Proxies

  • Retrieve validated 4/4a/5 proxies as simple strings for generic use
  • Use one of the dialer functions with any golang code that calls for a net.Dialer
  • Spin up a SOCKS5 server that will then make rotating use of your validated proxies

The way you choose to use this lib is yours. The API is fairly extensive for you to be able to customize runtime configuration without having to do any surgery.

Things like the amount of validation workers that are concurrently operating, timeouts, and proxy re-use policies may be tuned in real-time. please read the docs.


This project is in development.

It "works" and has been used in "production", but still needs some love.

Please break it and let me know what broke.

See the docs and the example for more details.