Quickly set up an IPv6 proxy through Shadowsocks, V2Ray plugin, Nginx and Cloudflare. Android client only.
This bash script is based on this post. However, the "Let's Encrypt SSL Certificate" steps are not included, I use a Cloudflare Flexible SSL Certificate and I assume you do that as well.
- A VPS under Ubuntu 20.04 OS with a IPv6 address.
- A domain name or sub-domain added on a Cloudflare account.
- A "AAA" record of the VPS IPv6 added into Cloudflare account.
In order to execute this script, no web servers must be previously installed. On my end, Ubuntu 20.04 comes with Apache as pre-installed web server, if that's your case, you need to uninstall apache and install curl. You can do all this by executing:
sudo apt remove --purge apache2 -y && sudo apt install curl -y
You can execute this script on-the-fly by executing:
curl -s https://raw.githubusercontent.com/agoldcheidt/v2ray-ipv6-proxy-tls/main/ipv6-proxy | bash -s yourdomainname
Replace yourdomainname with your current domain name or sub-domain.
Since this is a very simple script you can change its settings with the sed command.
- Default Shadowsocks Password: pass1234
- Default V2Ray Location: /fiberweb
To change the default password you can execute:
sed -i "s/pass1234/mypassword/g" /etc/shadowsocks-libev/config.json && sudo systemctl restart shadowsocks-libev
Replace mypassword with your custom password.
To change the default V2Ray location you can execute:
sed -i "s/fiberweb/myrandomwords/g" /etc/shadowsocks-libev/config.json && sudo systemctl restart shadowsocks-libev
sed -i "s/fiberweb/myrandomwords/g" /etc/nginx/sites-available/default && sudo systemctl restart nginx
Replace myrandomwords with your custom location.
During development, I've tested this script on Debian Buster/Bullseye based on KVM/NAT VPS instances from several web hosting providers, all the tests failed on Debian. For the meantime, I recommend Ubuntu 20.04 OS only.
To connect through this IPv6 proxy, you must install Shadowsocks and V2Ray plugin (both by Max Lv.) in your android device. Check the "Configure Client" section in the Source Post.
All credits goes to the Source Post and all the great community behind it. Many thanks to WebHorizon for provide high-speed and reliable VPS instances located on Japan and Poland.
Support my project at: https://paypal.me/AlexGoldcheidt