Giter Club home page Giter Club logo

ocserv-docker's Introduction

ocserv-docker

You can use this repository to deploy ocserv and use it inside Iran.

Deploy

  • Install Docker 1.0+
  • cd ~;git clone https://github.com/satrobit/ocserv-docker.git

Run:

docker run -d --privileged --name ocserv-docker -v ~/ocserv-docker/ocserv:/etc/ocserv -p 443:443/tcp wppurking/ocserv

If you don't want to route the traffic inside Iran then:

docker run -d --privileged --name ocserv-docker -v ~/ocserv-docker/ocserv_iran:/etc/ocserv -p 443:443/tcp wppurking/ocserv

Be aware that the subnets in the ocserv.conf file are result of merging CIDRs and to increase performance it may contain IPs from other CIDRs so don't use this for anything important!

To make sure you're not leaking any information inside Iran use the default ocserv.conf

Usage

  • Use the default users to connect. (wyatt:616 holly:525)
  • If iptables is enabled make sure both tcp and udp are open to the public on port 443.
  • Download a client. Windows and macOS, Android, iOS

Users

Add a new user:

$> docker exec -it $(docker ps -a | grep vpn_run | awk '{print $1}') ocpasswd yourname
$> Enter password:
$> Re-enter password:

Removing default users:

Open ./ocserv/ocpasswd and remove the lines containing default usernames.

To-Do

  • Translate README.md
  • Add excluded Iranian IPs to ocserv.conf

Information

  • Box Size: 164 MB (originally 380+ MB)
  • ubuntu:trusty
  • Tested environments:
    • [Linode 1G Ubuntu 14.04 LTS]
    • [Vultr 768MB Ubuntu 14.04 LTS]
    • [DigitalOcean 512MB Docker 1.2.0 on Ubuntu 14.04]

Refs

ocserv-docker's People

Contributors

5aaee9 avatar catatnight avatar harukama avatar hongqn avatar krizex avatar satrobit avatar wppurking avatar wyattpan avatar zen9073 avatar

Stargazers

 avatar  avatar

Watchers

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