Git Product home page Git Product logo

nyu's Introduction

Nyu

NYU-PROXY

Wireguard Container proxy using 3proxy binary to redirect the traffic.

Easy way

  1. Download this repository:
git clone https://github.com/drkrysSrng/nyu.git
  1. Launch the script to create the container(it removes non-used files too) and saving it to a tar.gz:
cd nyu/
./scripts/create_nyu.sh

Manual way

  1. Download this repository:
git clone https://github.com/drkrysSrng/nyu.git
  1. Compile the docker image using:
cd nyu/
docker build --tag nyu:1.0 .
docker save nyu:1.0 | gzip > nyu_1.0.tar.gz
  1. Load in the destination server:
docker load < nyu_1.0.tar.gz

  1. Launch the docker-compose directly
docker-compose up -d

Proxy Adjustments

  • The PUBLIC_IP must your public IP or your server's to check you are outside or NOT.
version: '2.1'
services:
  nyu-vpn1:
    image: nyu:1.0
    container_name: nyu-vpn1
    privileged: true
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
    restart: always
    ports:
      - 127.0.0.1:9051:9050
      - 127.0.0.1:8118:8118
    volumes:
      - /lib/modules:/lib/modules
      - ./wgconfs:/config
    networks:
      - lucy
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    environment:
      - CONF_FILE=/etc/3proxy.cfg
      - WG_FILE=/config/wg1.conf
      - OUT_IP=PUBLIC_IP
      - "NETWORK=cm91dGUgYWRkIC1uZXQgMTcyLjI2LjAuMC8xNSBndyAxNzIuMjkuMzAuMSBkZXYgZXRoMA=="

Problem resolution

  • The step to check if it is working correctly: (change the port to the proxy to check)
$ curl -x socks5h://localhost:9011 ipinfo.io
$ docker exec -it nyu-vpn1 curl ipinfo.io
  • Nyu checks and fixes itself automatically, but it is always possible to restart the proxy container: (change docker container name with the container you want to check)
$ docker restart nyu-vpn1
  • Also the complete system can be restarted destroying all the containers and launching them again:
$ docker-compose down
$ docker-compose up -d

nyu's People

Watchers

M 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.