项目作者: lanrat

项目描述 :
SOCKS for your subnet
高级语言: Go
项目地址: git://github.com/lanrat/stargate.git
创建时间: 2019-03-20T17:41:23Z
项目社区:https://github.com/lanrat/stargate

开源协议:GNU General Public License v3.0

下载


Stargate

Stargate runs TCP SOCKS proxies on different ports egressing on sequential IPs in the same subnet.
This requires the host running stargate to have the subnet routed directly to it.

If you have an IPv6 subnet, stargate can allow you to make full use of it by any program that can speak SOCKS.

Usage

  1. Usage of ./stargate: [OPTION]... CIDR
  2. CIDR example: "192.0.2.0/24"
  3. OPTIONS:
  4. -listen string
  5. IP to listen on (default "localhost")
  6. -port uint
  7. first port to start listening on
  8. -random uint
  9. port to use for random proxy server
  10. -verbose
  11. enable verbose logging

Random

The -random flag starts a SOCKS5 proxy that egresses traffic on a random IP in the subnet.
This is useful to avoid rate-limiting or in situations where there are too many IPs in the subnet to listen on each port which is common with IPv6.

Example

The following will start 254 SOCKS proxies listening on 127.0.0.7 ports 10001-100254 sending traffic egressing on 192.0.2.1 through 192.0.2.254.

  1. ./stargate -listen 127.0.0.7 -port 10001 192.0.2.0/24

The following will start a single socks proxy listening on 127.0.0.1:1337 egressing each connection from a random IP in 2001:DB8:1337::1/64 This offers you 264 possible IPs to egress on.

  1. ./stargate -random 1337 2001:DB8:1337::1/64

Docker

Stargate can be run inside Docker as well, but it will require fancy routing rules or --net=host.

Building

Just run make!