Skip to content

Script to automate the creation of a cloud instance to use it as a cheap socks proxy. The main usage is during travels, to be able to have a secured connection even at the hotel.

License

Notifications You must be signed in to change notification settings

donrudo/proxypoxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy Poxy

Connects to an instance possible and then opens a tunnel to be used as a proxy; opens port 8080 by default.

Only Digital Ocean and AWS are supported by now, Openstack is planned.

Requirements

Python 3.x is required.

Install dependencies using:

pip install -r requirements.txt

poxy uses the following libraries:

  • boto3 (for AWS usage)
  • urllib3 (for HTTP calls to Digital Ocean)
  • certifi (for HTTPS calls to Digital Ocean)
  • subprocess (standard library - for SSH, paramiko implementation failed and is commented for now at ssh.py)
  • json (standard library)

Config file:

The current config file syntax should contain the following fields

{
  "aws": 
    {
      "username": ""
    },
  "digitalocean": 
    {
      "username": "",
      "token": ""
    },
  "socks":
    {
      "key": {
        "private": "/path/to/private_key",
        "public": "/path/to/public_key"
      },
      "port": 8080
    }
}

TODO:

  • support start and stop tasks:
    • ./poxy.py start: should begin the normal procedure described above and create an instance if required.
    • ./poxy.py stop: would be expected to destroy the instance if one was created.

USAGE:

./poxy.py /path/to/config.json

if it's correctly configured it will printout the Digital Ocean json structure and it will try to connect to the first instance available using the given private_key

This is an early version, not expect it to work and have a fire extinguisher close to you.

About

Script to automate the creation of a cloud instance to use it as a cheap socks proxy. The main usage is during travels, to be able to have a secured connection even at the hotel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages