Anyone Proxy

The Anyone Proxy is live on NPM! It allows you to tunnel calls on your command line (Terminal on Mac, CommandPrompt or PowerShell on Windows).

Installation

Installing the @anyone-protocol package (see Install NPM Package) gives you access to the anyone-proxy command too, from all folders where the package is installed.

Start a Socks5 proxy

In a separate terminal window, run the anon client and ensure it bootstraps to 100%.

npx anyone-client

Running

Typically, you need to prepend npx anyone-proxy before existing command line calls:

npx anyone-proxy <your command>

Additional Arguments

These are additional arguments to configure verbosity on the command line, connection types, and more. These commands can typically be chained.

-q Quiet mode - suppresses ProxyChains connection messages.

npx anyone-proxy -q <your command>

-f <file> Use a specific configuration file instead of the default

npx anyone-proxy -f ./my-proxy.conf <your command>

When -f is not defined the default proxy configuration is:

strict_chain
proxy_dns
remote_dns_subnet 224

tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0

[ProxyList]
socks5 127.0.0.1 9050
Default Configuration Breakdown
  • strict_chain:

    • ProxyChains will use proxies in the order listed in [ProxyList] without skipping any

    • If one proxy in the chain fails, the connection fails

    • Alternative is dynamic_chain which skips dead proxies

  • proxy_dns:

    • DNS requests will also go through the proxy chain

    • Without this, DNS might leak your real IP

  • remote_dns_subnet 224:

    • Uses a subnet to prevent DNS leaks (224 is a common value)

    • Helps prevent correlation of DNS requests with your real IP

  • tcp_read_time_out 15000:

    • Sets TCP read timeout to 15 seconds (15000 ms)

  • tcp_connect_time_out 8000:

    • Sets TCP connection timeout to 8 seconds (8000 ms)

  • localnet 127.0.0.0/255.0.0.0:

    • Defines local network addresses that won't be proxied

    • This particular setting excludes all 127.x.x.x addresses (localhost)

  • [ProxyList] section:

    • Defines the actual proxies to use

    • In this case, it's using a Anon SOCKS5 proxy on localhost port 9050

    • You can define multiple proxies in this list.

Example on how to use

File download:

npx anyone-proxy -q wget -O example.file https://check.en.anyone.tech/api/ip   

To verify the command was processed through the Anyone Network, check the contents of the downloaded file by typing cat example.file, you should see something like: "IsAnon":true,"IP":"49.224.34.19"}

Coming Soon

  • Reference examples and tutorials

  • Further chaining and combinations!

Last updated