- Valid Domain Name Recommended .ir
- ArvanCloud Account
- PaaS Or Any Debian Servers the help of DockerFile
- Minimum Server Requirements (RAM: 256 MB, CPU: 0.5, Disk: 10G Location: out of IRAN)
- Random Password (Online UUID Generator)
curl -sSL https://gist.github.com/amircloner/4305b461df40616a1c4c432b3619af82/raw | bash
git clone https://github.com/amircloner/tcp-vpn-proxy.git && cd tcp-vpn-proxy
docker build -t amircloner/tcp-vpn-proxy:v1.0.0 .
The docker environment variables required are:
Domain : The domain of your server without the schema(https, http etc). Ex: test.com, not https://test.com
Password : Password you want to set for the Shadowsocks VPN service. EX: 0734e365-ac11-43b0-97d0-7923477e6dd5
PORT : Server port. Ex: 80
docker run -d --restart=always -p {PORT}:{PORT} --env Domain={Domain} --env Password={Password} --env PORT={PORT} amircloner/tcp-vpn-proxy:v1.0.0
- Login into ArvanCloud Account
- In CDN
- Click + Add new domains
- Add new Domain
- In CDN > DNS Records
- Create new Records (Subdomain) that equal to {Domain} point to server IP
- Check Arvan CDN is Enable
- Origin server connection protocol > HTTP
- Set {PORT} and Server IP
After the server is deployed, open app to display the webpage normally. After the address is filled with the path (for example: https://{Domain}/static), the 404 page is displayed, which means the deployment is successful.
https://{Domain}/qr
(Change {Domain} to your own app server url.)
Use the client (Shadowsocks recommended) to scan the QR code.
or
https://{Domain}/ss
(Change {Domain} to your own app server url.)
Copy the details after opening and import it to the client.
or
{
"server" : "{Domain}",
"server_port" : 443,
"local_port" : 1080,
"password":"{password}",
"timeout":300,
"method":"chacha20-ietf-poly1305",
"mode": "tcp_only",
"fast_open":false,
"reuse_port":true,
"no_delay":true,
"plugin": "v2ray-plugin",
"plugin_opts":"path=/v2;host={Domain};tls",
"remarks" : "Private VPN"
}
Change {Domain} with your server url and {password} with your password.
Extract and keep v2ray plugin in the same folder as shadowsocks.
Install the shadowsocks library, download and move the v2ray plugin in '/usr/bin' and use the following command to connect to VPN:
ss-local -c "config file location on your system"
Then use any proxy script to route your system's requests through your VPN.
Ex:
-
Proxy SwitchyOmega : This extension can be used in chrome
-
Polipo : Routes all of the network through your proxy