Code Monkey home page Code Monkey logo

ansible-roles-proxyserver's Introduction

ansible-proxyserver

Ansible playbook for proxyserver

In this Playbook, 4 components are installed on Ubuntu, they are:

  • nginx, wroking as front-end proxy
  • ssr and v2ray working as scientist tools
  • frp working as reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

How it works:

SSR listen on 80 port, nginx listen on 2222 and 443, when SSR receive normal request, it will work normally to help u bypass the GFW. when Nginx receive request with header - "www.chinadream", it will redirect the request to v2ray, who will process it and help u bypass the firewall, when ssr receive http request and nginx receive https without correct header(chinadream), the traffic will fall back to nginx, when nginx works as web server and display a static webpage.

frp is used for nas and home router.

certbot is used to create SSL.

How to use it:

Ansible version >= 2.4

before use the playbook, remember replace proxy domain name in var, which locate in roles/nginx/default/main.yml to your own domain name

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.