{"id":17422250,"url":"https://github.com/alexzhangs/aws-ec2-shadowsocks-libev","last_synced_at":"2025-04-11T23:19:27.091Z","repository":{"id":90923283,"uuid":"63088598","full_name":"alexzhangs/aws-ec2-shadowsocks-libev","owner":"alexzhangs","description":"Install shadowsocks-libev on AWS EC2 instance.","archived":false,"fork":false,"pushed_at":"2022-03-21T02:15:47.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T23:19:20.510Z","etag":null,"topics":["aws","linux","shadowsocks","shadowsocks-libev"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexzhangs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-11T17:36:29.000Z","updated_at":"2024-06-23T12:40:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f129f009-bd42-4c6a-a953-a4cefbabdf34","html_url":"https://github.com/alexzhangs/aws-ec2-shadowsocks-libev","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhangs%2Faws-ec2-shadowsocks-libev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhangs%2Faws-ec2-shadowsocks-libev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhangs%2Faws-ec2-shadowsocks-libev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhangs%2Faws-ec2-shadowsocks-libev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexzhangs","download_url":"https://codeload.github.com/alexzhangs/aws-ec2-shadowsocks-libev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492886,"owners_count":21113163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","linux","shadowsocks","shadowsocks-libev"],"created_at":"2024-10-17T03:14:24.412Z","updated_at":"2025-04-11T23:19:27.062Z","avatar_url":"https://github.com/alexzhangs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-ec2-shadowsocks-libev\n\nInstall shadowsocks-libev server on AWS EC2 instance.\n\nTested with:\n\n* [AWS Amazon Linux AMI](https://aws.amazon.com/amazon-linux-ami/)\n* [AWS Amazon Linux 2 AMI](https://aws.amazon.com/amazon-linux-2/)\n* [Shadowsocks-libev 3.2.0 for Linux](https://github.com/shadowsocks/shadowsocks-libev)\n\n## Installation\n\nRun below commands on the remote server.\n\n```\ngit clone https://github.com/alexzhangs/aws-ec2-shadowsocks-libev\n\n# run this under root\nbash aws-ec2-shadowsocks-libev/install.sh\n\n# see help\nbash aws-ec2-shadowsocks-libev/install.sh -h\nUsage: install.sh [-m ENCRYPTION_METHOD] [-t TIMEOUT] [-f true|false] [-s SERVER] [-p PORT]\nOPTIONS\n\t[-m ENCRYPTION_METHOD]\n\n\tEncryption method, default is aes-256-cfb.\n\n\t[-t TIMEOUT]\n\n\tConnecting timeout after \u003cN\u003e seconds, default is 60.\n\n\t[-f true|false]\n\n\tFast Open, default is false.\n\n\t[-s SERVER]\n\n\tIP address that Shadowsocks manager will listen on, default is 127.0.0.1.\n\tUse 0.0.0.0 instead of specific IP address to bind on public interface to eliminate\n\tthe dependency. But be aware that the manager API is not protected.\n\n\t[-p PORT]\n\n\tPort that Shadowsocks manager will listen on, default is 6001.\n\tThis port is used by multi-user API, is not for the Socks services.\n\tDon't confuse it with the Shadowsocks service ports.\n```\n    \n## Add Shadowsocks users (ports)\n\nThere are two methods to do this.\n\n1. Using config file\n\nEdit `/etc/shadowsocks-libev/config.json`, add the `port/password` under the key `port_password`.\n\n```\n{\n    \"server\": \"0.0.0.0\",\n    ...\n    \"port_password\": {\n        \"8381\": \"foobar1\",\n        \"8382\": \"foobar2\",\n        \"8383\": \"foobar3\",\n        \"8384\": \"foobar4\"\n    }\n}\n```\n\nRestart the Shadowsocks service to let the new added ports take effect.\n\n```\nservice shadowsocks-libev-manager restart\n```\n\n1. Using multi-user API\n\nSee the [Manage Multiple Users](https://github.com/shadowsocks/shadowsocks/wiki/Manage-Multiple-Users) document.\n\n\nNOTE: Remember to open all the used ports in EC2 instance's security group as inbound rules.\n\n## Reference\n\n* [shadowsocks-manager](https://github.com/alexzhangs/shadowsocks-manager)\n* [aws-cfn-vpn](https://github.com/alexzhangs/aws-cfn-vpn)\n* [Shadowsocks-libev 3.2.0 for Linux](https://github.com/shadowsocks/shadowsocks-libev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzhangs%2Faws-ec2-shadowsocks-libev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexzhangs%2Faws-ec2-shadowsocks-libev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzhangs%2Faws-ec2-shadowsocks-libev/lists"}