Giter Club home page Giter Club logo

vpnrotator's Introduction

VPN ROTATOR

alt text

1) Create new VM

  • Type: Linux

  • Version: Debian (64-bit)

  • Memory size: 512 MB (or more)

  • Hard disk: VDI, Dynamic, 8 GB

  • Before starting the VM, change its Network Settings: -> Adapter 1: Bridged Adapter (Promiscuous Mode: Deny) -> Adapter 2: Internal Network (Promiscuous Mode: Allow VMs)

2) Install Debian with the following options

  • Download Debian ISO (debian-10.1.0-amd64-xfce-CD-1.iso)

  • Choose Install (second option)

  • Primary network interface -> Chose the first one

  • Hostname: vpn

  • Domain: Leave blank

  • User name and passwords: (your choice)

  • Software to install: -> uncheck everything and check: SSH server Standard System utilities

3) Get updates

  • Get root (type su and enter)

apt-get update

apt-get install psmisc unzip openvpn

4) Configure /etc/network/interfaces

nano /etc/network/interfaces

** Edit with the name of your ethernet cards and IP range ** (type ip link show to reveal the name of your ethernet cards)

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The bridged network interface
    allow-hotplug enp0s3
    iface enp0s3 inet static
    address 192.168.1.168
    netmask 255.255.255.0
    gateway 192.168.1.1
    network 192.168.1.0
    broadcast 192.168.1.255
    dns-nameservers 1.1.1.1 1.0.0.1

    # the internal-only network interface
    allow-hotplug enp0s8
    iface enp0s8 inet static
    address 192.168.3.1
    netmask 255.255.255.0
    network 192.168.3.0
    broadcast 192.168.3.255
    dns-nameservers 1.1.1.1 1.0.0.1

5) Configure additional network settings

nano /etc/sysctl.conf

Uncomment net.ipv4.ip_forward=1

Uncomment (if you want to enable IPv6) net.ipv6.conf.all.forwarding=1

Add the following at the end of the file if you want to disable IPV6

    # These edits EXPLICITLY disable IPV6
    net.ipv6.conf.all.disable_ipv6 = 0
    net.ipv6.conf.default.disable_ipv6 = 0
    net.ipv6.conf.lo.disable_ipv6 = 0
    net.ipv6.conf.eth0.disable_ipv6 = 0

Edit the vpnservice.sh file based on your network's gateway for the Internal NIC (in the example below, it assumes it is on 192.168.3.x)

    iptables -A INPUT -s 192.168.3.0/24 -j DROP

6) Copy necessary files

(individually or simply ZIP them and then SCP)

    scp countries.txt [email protected]:/home/vpn/
    scp dn.sh [email protected]:/home/vpn/
    scp up.sh [email protected]:/home/vpn/
    scp VPN.sh [email protected]:/home/vpn/
    scp vpnservice.sh [email protected]:/home/vpn/

Make scripts executable

chmod +x *.sh

7) Reboot VM

/sbin/reboot

8) Launch VPN rotator

Login as root then, run ./VPN.sh

On first setup, you will need to create profiles to add new VPN providers. This requires the URL to a ZIP for .ovpn files and your username and password for that VPN provider. The script will then download and sort all the .ovpn files automatically into folders by country and provider.

alt text

vpnrotator's People

Contributors

malwareinfosec avatar

Watchers

 avatar

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.