Code Monkey home page Code Monkey logo

cloud-gateway's Introduction

cloud-gateway

Setup gateway host in cloud provider (only DigitalOcean supported for the moment) with ipsec (libreswan) and openvpn (pritunl).

IPsec configuration sample could be found here.

Pritunl should be configured manually (because of API documentation absence).

Pritunl server adds NAT masquerading for routes by default, this can be disabled by direct MongoDB update:

use pritunl
db.servers.updateOne(
    { _id : ObjectId("<ID>") },
    { $set : { "routes.<INDEX>.nat" : false } }
)

How to use

ansible-galaxy install -r requirements.yaml
pip install -r requirements.txt
ansible-playbook -i <inventory> site.yaml

Tests

Only IPsec/BGP connectivity is testing.

How to run tests locally

  1. Install Vagrant: https://www.vagrantup.com/docs/installation;
  2. Install VirtualBox: https://www.virtualbox.org/wiki/Downloads;
  3. Run tests: ./tests/start;
  4. Play with created IPsec configuration;
  5. Destroy test environment: ./tests/stop.

Versions were verified with tests

Vagrant Ansible (Core) VirtualBox CentOS
2.2.15 4.2.0 (2.11.5) 6.1.26 7.8.2003
2.2.3 2.7.5 5.2.22 7.6.1810

cloud-gateway's People

Contributors

dependabot[bot] avatar oukooveu 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.