🧦Shadowsocks V2ray TLS
Setup guide
1. Prepare
Buy a simple server (VPS) for 5 dollars outside Iran. List of cloud server providers.
Buy a cheap domain for 2 dollars.
Create an Arvancloud account. It only needs an email address and a phone number (both Iranian and international phone numbers accepted)
2. Arvancloud setup
Log in to the Arvancloud account and add your domain.
Domain List > Add new domainsThen:
Enter your domain name
Select Free plan
Skip DNS Records
Note the nameservers presented on the last step
Go to your domain registrar (the website where you bought your domain, e.g. Godaddy, Namecheap, ...)
Update the nameservers to the one you got in Arvancloud (after adding the domain).
After your domain nameservers changed successfully (depending on the registrar, it can take a few hours, but it's usually quite fast), your domain is now using Arvancloud DNS.
Connect your domain to your server's IP address using
Arecords. Make sure theCloud Serviceoption is enabled for each record.Go to
HTTPS settingson the navbar, selectIssue certificate. It will take around 30 minutes for the certificate to be ready.After the certificate is issued, enable the
Activate HTTPSoption.
3. VPS setup
SSH into the server.
Install docker and docker-compose. Here's a tutorial on how to do it for Ubuntu.
Open ports 80 TCP ingress and 443 TCP ingress on your server (security group/firewall)
Clone the below repo and
cdinside the folder.
git clone https://github.com/WeAreMahsaAmini/FreeInternet.git
cd protocols/shadowsocks-v2ray-tls/Edit the
.envfile.
# Replace your_domain with the domain you bought, without http, or www in front of it, e.g.: google.com
DOMAIN=your-domain.com
# change to a secure password
PASSWORD=some-strong-passwordBuild the docker image and run the containers with below commands:
docker-compose build
docker-compose up -dSince the container is running in detached mode, you need to check the logs to see the config for your VPN server. (Android and iOS urls)
docker-compose logs -f --tail 5004. Share
Congratulations! Your server is running now. You can share the URLs with your family, friends and people you trust. You can share this guide for them to start using your VPN server.
Alternatively, you can open a pull request to this file to share your server config on this repository so more people can utilise it.
Last updated
Was this helpful?