Creates Hysteria 2 / Reality / Shadowsocks tunnels very fast with one command while having the ability to customize every option if you want.
Optimized for Iran
- install and run LATEST Reality server with one command for the following architectures:
i386
amd64
arm64
armv7
s390x
ppc64
armv6l
- Install and run LATEST Hysteria 2 server with one command for the following architectures:
i386
amd64
amd64v3
arm64
armv7
s390x
- install and run
shadowsocks-libev
usingsnap
- Update required packages automatically (can be disabled)
- Optimize server settings for best performance (can be disabled)
- Sets up the protocol on a separate user (NOT
root
) that is randomly created (can be customized) - Configures
ufw
to allow port (can be customized) - Uses
AVX
optimized package automatically if the machine supports it (amd64v3
) - Generates required certificates and keys (CN can be customized)
- Generates QR-Code to connect easily (can be disabled)
- VPS with Linux OS (Tests were done on Ubuntu 22.04)
- Optionally upgrade all your OS packages to the latest version (for security and performance)
- Run the following command in your VPS:
sudo curl -s https://raw.githubusercontent.com/MohsenHNSJ/TunlDigr/main/Dig.sh | bash
- Select the desired protocol
- Wait a few minutes and scan the QR Code
by specifying this argument, the script will automatically pass the tunnel selection part and proceed to creation.
useful for one-tap situations.
h2
: Hysteria 2xr
: Realityss
: Shadowsocks
by adding this flag, the script will NOT update repositories and install required packages.
useful if you already have the following packages installed:
wget
tar
openssl
gawk
sshpass
ufw
coreutils
curl
adduser
sed
grep
util-linux
qrencode
unzip
snapd
haveged
by adding this flag, the script will NOT optimize the sysctl.conf
and limits.conf
file.
not recommended
by adding this flag, the script will NOT show the connection information at the end of setup.
useful in case you have customized everything.
by adding this flag, the script will NOT show QR Code at the end of setup.
useful in case the screen resolution is too small.
by adding this flag, the script will NOT show the startup message.
the script generates a random username each time, you can override this behaviour and provide your custom username to be used when creating a new user.
the script generates a random password each time, you can override this behaviour and provide your custom password to be used when creating a new user.
you can set custom port for protocols.
Acceptable range is 0 - 65535
. if input is invalid, it will be ignored.
default is 443
you can set custom name for the server to show in connection configuration link.
default is server host name
you can set custom common name for SSL certificate.
default: google-analytics.com
you can set custom password for hysteria obfs (salamander).
default is random
you can set custom password for authentication to hysteria 2 protocol.
default is random