{"id":16883225,"url":"https://github.com/beraliv/socks5-server","last_synced_at":"2026-05-04T16:35:16.379Z","repository":{"id":109499523,"uuid":"129396359","full_name":"Beraliv/socks5-server","owner":"Beraliv","description":"Node server with support of SOCKS5 protocol","archived":false,"fork":false,"pushed_at":"2018-04-28T06:59:52.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T09:53:05.834Z","etag":null,"topics":["node","server","socks-proxy","socks-server","socks5"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beraliv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-04-13T12:02:42.000Z","updated_at":"2022-01-12T08:06:52.000Z","dependencies_parsed_at":"2023-07-14T23:31:32.818Z","dependency_job_id":null,"html_url":"https://github.com/Beraliv/socks5-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beraliv%2Fsocks5-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beraliv%2Fsocks5-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beraliv%2Fsocks5-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beraliv%2Fsocks5-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beraliv","download_url":"https://codeload.github.com/Beraliv/socks5-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554040,"owners_count":20471172,"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":["node","server","socks-proxy","socks-server","socks5"],"created_at":"2024-10-13T16:10:54.221Z","updated_at":"2026-05-04T16:35:11.354Z","avatar_url":"https://github.com/Beraliv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socks5-server\n\nNode.js server supporting SOCKS5 protocol\n\n- [x] call support\n\n## Quick start\n\n\u003e You can use either `npm` or `yarn` to follow the instructions\n\n1. Download Git repo:\n```bash\ngit clone https://github.com/Beraliv/socks5-server\n```\n\n2. Download dependencies:\n```bash\nnpm i\n\nyarn\n```\n\n3. Start the server simply:\n```bash\nnpm run start\n\nyarn start\n```\n\n## Configurations\n\nYou need to configure both server and client\n\n### Create server instance\n\n1. Sign up to AWS (you can connect your card for $1 for the first year)\n2. [Console](https://console.aws.amazon.com/ec2) \u003e EC2 Dashboard \u003e Launch instance\n3. Ubuntu Server 16.04 LTS (HVM), SSD Volume Type \u003e Select\n4. t2.micro (Free tier eligible) \u003e Next: Configure Instance Details\n5. Next: Add Storage\n6. Set Size (GiB) to `30` (maximum free available) \u003e Next: Add Tags\n7. Next: Configure Security\n8. Add Type `Custom TCP Rule` with Port `1080` and Souce `Custom` with `0.0.0.0/0` for SOCKS5 \u003e Review and Launch\n9. Launch \u003e Create a new key pair with Key pair name, i.e. `aws-keys` \u003e Download Key Pair (it will download a private key with specified name, i.e. `aws-keys.pem`) \u003e Launch Instances\n\n### SSH access (Windows)\n\n1. Install [PuTTY](https://putty.org.ru/download.html)\n2. Install [WinSCP](https://winscp.net/eng/download.php)\n3. WinSCP \u003e Fill Host name with `IPv4 Public IP` from `Instances` in AWS Dashboard \u003e Fill Port number with `22` for SSH \u003e Fill User name with default for AWS `ubuntu`\n4. Advanced \u003e SSH \u003e Authentication \u003e Private key file \u003e All private Keys Files \u003e Choose `aws-keys.pem` \u003e OK (convert to `.ppk`) \u003e OK (Close Advanced Site Settings)\n5. Save \u003e Login\n6. Use `Ctrl + P` for console\n\n### Service\n\n1. From [Quick Start](https://github.com/Beraliv/socks5-server#quick-start) download git repo and dependencies\n2. Go to services directory with `cd /etc/systemd/system`\n3. Create service for the server with `sudo touch s5ts.service`\n4. Give write permissions to all users to the file with `sudo chmod 777 s5ts.service` and `sudo chown ubuntu s5ts.service`\n5. Open file with Vim using `vim s5ts.service`\n6. Insert (with right button of the mouse)\n\n```\n[Unit]\nDescription=Node server which supports SOCKS5 protocol\nAfter=network.target\n\n[Service]\nExecStart=/home/ubuntu/socks5-server/index.js\nRestart=always\nUser=ubuntu\nGroup=nogroup  \nEnvironment=PATH=/usr/bin:/usr/local/bin\nEnvironment=NODE_ENV=production\nWorkingDirectory=/home/ubuntu/socks5-server\n\n[Install]\nWantedBy=multi-user.target\n```\n\n\u003e Note RHEL/Fedora uses 'nobody', Debian/Ubuntu uses 'nogroup' as Group\n\n7. `Esc` + `:wq!` will save and exit from Vim\n8. To access `index.js` from created service, you need to add `sudo chmod 777 index.js` and `sudo chown ubuntu index.js` to `ExecStart` file\n9. Make systemd aware of the new service with `sudo systemctl daemon-reload`\n10. Make the service start on boot with `sudo systemctl enable s5ts`\n\n### Service setups\n\n1. To check logs in real time using `sudo journalctl --follow -u s5ts`\n2. To restart service use `sudo systemctl restart s5ts`\n\n## Windows Client\n\n1. Find and open `C:\\Windows\\System32\\drivers\\etc\\hosts`\n2. Add a new line at the end: `$YOUR_IP_HERE$ $NAME$`, i.e. `173.21.33.95 s5ts.local`\n3. Connect using specified settings:\n\n![Connection Type](https://github.com/Beraliv/socks5-server/blob/master/images/proxy-settings.png)\n\nor\n\n![Connection Type (alternative way)](https://github.com/Beraliv/socks5-server/blob/master/images/proxy-settings-2.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberaliv%2Fsocks5-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberaliv%2Fsocks5-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberaliv%2Fsocks5-server/lists"}