Giter Site home page Giter Site logo

chn_router_vpn's Introduction

CHN_Router_VPN

架构

Client <—VPN—> China VPS <—Shadowsocks—>abroad VPS

优点

  1. 兼容性好,VPN干扰严重但大部分设备都支持,SS稳定但移动设备体验不够好。
  2. 国内VPS中转,可选择出口线路优质的VPS,提高出口速度。
  3. 可在国内VPS根据国内外IP地址分流,提高访问速度,节省流量。

注意事项

  1. 只支持CentOS和Ubuntu。CentOS会有小概率编译Strongswan失败,所以使用yum安装。Ubuntu会编译安装最新版,耗时会稍长。
  2. 有些VPS网卡eth0是内网,eth1才是公网,例如阿里云,注意修改。
  3. VPN的DNS需要使用国内无污染的DNS,脚本中提供的无污染DNS不保证长期有效。

使用方法

wget https://raw.githubusercontent.com/bazingaterry/CHN_ROUTER_VPN/master/install.sh
chmod +x install.sh
sudo bash install.sh

注意选对VPS类型,填写公网网卡(如eth0),Shadowsocks的服务器地址、端口、密码、加密方式,其余可以保持默认值。

修改VPN的帐号密码,CentOS在/etc/strongswan/ipsec.secrets,Ubuntu在/usr/local/etc/ipsec.secrets

参考项目

teddysun/shadowsocks_install

quericy/one-key-ikev2-vpn

chn_router_vpn's People

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.