GithubHelp home page GithubHelp logo

myvpn's Introduction

MyVPN

有两种工作模式,ssh tunnel 和 http tunnel。

自动完成路由配置。可设定成为默认路由。

可在连接成功/关闭时执行up/down script (比如配合 chnroute )。

目前支持 Linux 作为服务端,Mac OS X作为客户端。

ssh tunnel

支持指定ssh key,免输远端password。

Installation

在服务器和客户端都安装 myvpn 脚本。

服务端 sshd_config 需要打开 PermitTunnel:

PermitTunnel yes

在客户端运行:

sudo myvpn ssh server.com -w 3:4 --path /path/to/bin/myvpn/on/server

检查是否可 ping 通:

ping 192.168.5.1

详细参数可:

myvpn ssh -h

http tunnel

通过伪装mp3上传和下载的http连接,基于tun设备建立tunnel。

Installation

在服务器和客户端都安装 myvpn 脚本。

在服务端运行:

sudo myvpn http --mode server --ip 192.168.5.1 --peer-ip 192.168.5.2 -b 0.0.0.0:82

在客户端运行:

sudo myvpn http --ip 192.168.5.2 --peer-ip 192.168.5.1 --url http://your.server:82/

检查是否可 ping 通:

ping 192.168.5.1

详细参数可:

myvpn http -h

myvpn's People

Contributors

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