forked from azavaxhuman/IPv6-TunnelBroker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
32 lines (26 loc) · 838 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4)
CYAN=$(tput setaf 6)
RED=$(tput setaf 1)
RESET=$(tput sgr0)
# Install required packages
echo "Installing required packages..."
apt update
apt install sysvbanner
# Create symbolic link for iptables-dds script
# به داخل پوشه مخزن میرویم
mkdir /root/dds-ipv6
cd /root/dds-ipv6
# ساخت لینک نمادین با نام dds-tunnel که به tunnel.sh اشاره دارد
ln -s "$(pwd)/tunnelbroker.sh" /usr/local/bin/dds-ipv6
echo "${GREEN}Installation completed. You can now use ${RESET}${RED} dds-ipv6 ${RESET} command.${RESET}"
# تغییر مجوزهای اجرایی اسکریپت
chmod +x tunnelbroker.sh
sudo bash tunnelbroker.sh