Install and configure personal anti-censorship service Xray
- Ubuntu Server (22.04, 24.04)
- Python 3.10+
- Internet connection
- Installing Xray
- Creating, storing and changing XRAY server configuration
- Adding and removing XRAY server clients
Run simple command:
rm -rf /tmp/veepeenet \
&& mkdir /tmp/veepeenet \
&& (cd /tmp/veepeenet \
&& curl -LO https://github.com/spector517/veepeenet/releases/latest/download/veepeenet.tar.gz \
&& tar -xf veepeenet.tar.gz && (cd veepeenet-* && sudo ./install-xray.sh)
)
sudo xray-config --host my.domain.com --add-clients my_client1 my_client2
Configure XRAY server on host my.domain.com, create client configuration s my_client1 and my_client2 and print share links
sudo xray-config --remove-clients my_client2
Remove client my_client2
sudo xray-config --clean --host my.domain2.com --add-clients client1 client2 client3
Remove current configuration and create new configuration
sudo xray-config --help
Show help message
--hostThe IP/DNS-name of current host. Usinghostname -iif not specified. It is recommended to specify manually.--portThe XRAY server port. Default is 443--reality-hostThe reality host for active probing. Default is microsoft.com--reality-portThe reality port for active probing. Default is 443--add-clientsList of XRAY server clients names. Default - no generate clients configs.--remove-clientsRemoving clients list of XRAY server. Non-existing clients names will be ignored.--cleanRemove existing config. Default is False.--checkDry run. Print changed files content to the console.--no-ufwDo not use the Uncomplicated Firewall--statusShow Xray server information
Run simple command:
rm -rf /tmp/veepeenet \
&& mkdir /tmp/veepeenet \
&& (cd /tmp/veepeenet \
&& curl -LO https://github.com/spector517/veepeenet/releases/latest/download/veepeenet.tar.gz \
&& tar -xf veepeenet.tar.gz && (cd veepeenet-* && sudo ./uninstall-xray.sh)
)
MIT