Giter Site home page Giter Site logo

aws-ec2-shadowsocks-libev's Introduction

aws-ec2-shadowsocks-libev

Install shadowsocks-libev server on AWS EC2 instance.

Tested with:

Installation

Run below commands on the remote server.

git clone https://github.com/alexzhangs/aws-ec2-shadowsocks-libev

# run this under root
bash aws-ec2-shadowsocks-libev/install.sh

# see help
bash aws-ec2-shadowsocks-libev/install.sh -h
Usage: install.sh [-m ENCRYPTION_METHOD] [-t TIMEOUT] [-f true|false] [-s SERVER] [-p PORT]
OPTIONS
	[-m ENCRYPTION_METHOD]

	Encryption method, default is aes-256-cfb.

	[-t TIMEOUT]

	Connecting timeout after <N> seconds, default is 60.

	[-f true|false]

	Fast Open, default is false.

	[-s SERVER]

	IP address that Shadowsocks manager will listen on, default is 127.0.0.1.
	Use 0.0.0.0 instead of specific IP address to bind on public interface to eliminate
	the dependency. But be aware that the manager API is not protected.

	[-p PORT]

	Port that Shadowsocks manager will listen on, default is 6001.
	This port is used by multi-user API, is not for the Socks services.
	Don't confuse it with the Shadowsocks service ports.

Add Shadowsocks users (ports)

There are two methods to do this.

  1. Using config file

Edit /etc/shadowsocks-libev/config.json, add the port/password under the key port_password.

{
    "server": "0.0.0.0",
    ...
    "port_password": {
        "8381": "foobar1",
        "8382": "foobar2",
        "8383": "foobar3",
        "8384": "foobar4"
    }
}

Restart the Shadowsocks service to let the new added ports take effect.

service shadowsocks-libev-manager restart
  1. Using multi-user API

See the Manage Multiple Users document.

NOTE: Remember to open all the used ports in EC2 instance's security group as inbound rules.

Reference

aws-ec2-shadowsocks-libev's People

Contributors

alexzhangs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aws-ec2-shadowsocks-libev's Issues

Illegal option -o pipefail

sudo sh aws-ec2-shadowsocks-libev/install.sh
aws-ec2-shadowsocks-libev/install.sh: 4: set: Illegal option -o pipefail

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.