Giter Club home page Giter Club logo

ubuntu-ss's Introduction

ubuntu-ss

在Ubuntu上搭建自己的梯子S(hadow)s(ocks)

注意:使用前请看说明,重启服务器之后,需要再次启动一下shadowsocks,设置开机自启在最后。

附加使用配置文件启动shadowsocks

如果使用配置文件启动shadowsocks,ss.sh里面的最后一步就删掉不要执行。首先,创建配置文件

vi /etc/shadowsocks.json

里面的内容为

{
    "server":"my_server_ip",
    "server_port": 2173,
    "local_address": "127.0.0.1",
    "local_port": 1080,
    "password": "mypassword",
    "timeout": 300,
    "method": "rc4-md5"
}

server: 你的服务器IP;

server_port: 端口号,请务必自己修改成其他不常用的端口,谨防被封;

password: 自己设置一个密码;

method: 加密方式,可以不改。

配置好之后,给文件赋一下权限。

sudo chmod 755 /etc/shadowsocks.json

使用配置文件启动shadowsocks

sudo ssserver -c /etc/shadowsocks.json -d start

设置开机启动

Ubuntu的开机启动项是在/etc/rc.local中设置的,打开它,在exit 0前面把启动ss的命令sudo ssserver -c /etc/shadowsocks.json -d start加上就行了。

ubuntu-ss's People

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.