Code Monkey home page Code Monkey logo

v6proxies's Introduction

Squid Ipv6 Proxies

I made private ipv6 proxies for you. Use squid software. Translate ipv4 port to ipv6. Each port to one ipv6 outgoing

Table of Contents

Features

  • Single IP for each /64 subnet
  • No Ipv4 leakage
  • Anonymous, Elite, Transparent
  • User/pass Authentication

Requirements

  • Python >= 3.6
  • Squid v3

Install

  • ubuntu_install.sh This bash script used to rebuild squid. Default squid installs via the apt limit to 128 port. To make more proxies in squid, We need an increasing number of squid ports for proxy. Here, I change the number port listen to 65000
  • gen_squid.py. This python script used to gen squid config

Step 1

Run bash script

bash ubuntu_install.sh

This script will install dependency and clone this repo to /opt.

Step 2

Gen Squid Config

To see usage:

PYTHONPATH=/opt/v6proxies python3.6 gen_squid.py --help 

Output

usage: gen_squid.py [-h] --ipv6_subnet_full IPV6_SUBNET_FULL --net_interface NET_INTERFACE --pool_name POOL_NAME [--username USERNAME] [--password PASSWORD] [--number_ipv6 NUMBER_IPV6] [--unique_ip UNIQUE_IP]
                    [--start_port START_PORT]

Gen Squid Config

optional arguments:
  -h, --help            show this help message and exit
  --ipv6_subnet_full IPV6_SUBNET_FULL
                        ipv6 subnet full
  --net_interface NET_INTERFACE
                        net interface
  --pool_name POOL_NAME
                        pool name
  --username USERNAME   username
  --password PASSWORD   password
  --number_ipv6 NUMBER_IPV6
                        number ipv6. Default = 250
  --unique_ip UNIQUE_IP
                        single ip for each /64 subnet. Default = 1
  --start_port START_PORT
                        start proxy port. Default 32000

For example. I have ipv6 subnet 2602:fed2:699b::/48 and I want to make 2000 proxies with start ipv4 port from 10000, each proxy on /64

PYTHONPATH=/opt/v6proxies python3.6 gen_squid.py --ipv6_subnet_full 2602:fed2:699b::/48 --net_interface eth0 --pool_name squidv6  --number_ipv6 2000 --unique_ip 1 --start_port 10000

This script makes one squid config in /etc/squid with a filename like : squid-squidv6.conf and auth config file squidv6.auth

And one .sh like add_ip_{pool_name}.sh in /opt/v6proxies. In this example. file name is add_ip_squidv6.sh

add_ip_{pool_name}.sh is bash script to add ipv6 to network interface

To start proxies.

run two command

bash /opt/v6proxies/add_ip_squidv6.sh
/usr/local/squid/sbin/squid -f /etc/squid/squid-squidv6.conf

Testing

curl -x http://{user_name}:{password}@{IP}:{Port} https://ident.me 

example

curl -x http://cloud:[email protected]:10000 https://ident.me 

License

Distributed under the MIT License. See LICENSE for more information.

v6proxies's People

Contributors

hungnguyenhp avatar nguyenanhung avatar

Forkers

italy89

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.