wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -timezone "Asia/Shanghai" -swap "512" -debian 11 -port 22 -pwd '密码'
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -port 22 -pwd '密码'
bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -timezone "Asia/Shanghai" -swap "512" -debian 12 -port 22 -pwd '密码'
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 12 -v 64 -p 密码 -port 端口 -a -firmware --mirror 'https://mirrors.cloud.tencent.com/debian/'
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -u 20.04 -v 64 -p 密码 -port 端口 -a -firmware --mirror 'http://archive.ubuntu.com/ubuntu'
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 12 -v 64 -p 密码 -port 端口 -a -firmware --mirror 'http://mirrors.ustc.edu.cn/debian'
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf && echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p && sysctl net.ipv4.tcp_available_congestion_control && lsmod | grep bbr
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf && echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf
echo "net.ipv4.icmp_echo_ignore_all = 1" >> /etc/sysctl.conf && sysctl -p
sysctl -p /etc/sysctl.conf
wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh
//nft list ruleset
//systemctl restart nftables
//nano /etc/nftables.conf
//# nft add table ip nat
//添加转发到外部ip的端口
//nft -- add chain inet filter prerouting { type nat hook prerouting priority -100 \; }
//nft add chain inet filter postrouting { type nat hook postrouting priority 100 \; }
//nft add rule inet filter postrouting ip6 daddr [2403:xx] masquerade
//nft add rule inet filter prerouting tcp dport 30000-40000 dnat ip6 to [2403:xx]:20000
//nft add rule inet filter prerouting udp dport 30000-40000 dnat ip6 to [2403:xx]:20000
//不同写法:(声明ip6)
//nft add rule inet filter prerouting ip6 daddr [::] tcp dport 30000-40000 dnat to [::]:20000
//得到结果:ip6 daddr :: tcp dport 30000-40000 dnat ip6 to [2403:xx]:20000
//添加转发到本机的端口
nft -- add chain inet filter prerouting { type nat hook prerouting priority dstnat - 5 \; }
nft add rule inet filter prerouting tcp dport 30001-35000 redirect to :30000
nft add rule inet filter prerouting udp dport 30001-35000 redirect to :30000
//禁用某端口
nft add rule inet filter input tcp dport 9999 drop
//临时禁用ipv6
echo 1 >/proc/sys/net/ipv6/conf/all/disable_ipv6
cat > /etc/apt/sources.list << EOF
deb http://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
deb http://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
EOF
cat > /etc/apt/sources.list << EOF
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
EOF
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
//开机自动更改dns,有些主机服务商每次重启自动更改dns
chattr +i /etc/resolv.conf
@reboot echo -e "nameserver 2400:3200::1\nnameserver 2400:3200:baba::1" > /etc/resolv.conf
@reboot sleep 0.5 && echo "nameserver 45.11.45.11\nnameserver 9.9.9.9\nnameserver 208.67.220.222" > /etc/resolv.conf
//设置dns
nano /etc/dhcp/dhclient.conf
supersede domain-name-servers 223.5.5.5, 223.6.6.6;
supersede dhcp6.name-servers 2400:3200::1, 2400:3200:baba::1;
//设置静态v4v6
nano nano /etc/network/interfaces
auto enp1s0
iface enp1s0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
iface enp1s0 inet6 static
address 2400:xx:xx:xx::xx
netmask 64
gateway fe80::1
dns-nameservers 223.5.5.5 223.6.6.6
dns-nameservers 2400:3200::1 2400:3200:baba::1
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh
bash <(curl -Lso- https://bench.im/hyperspeed)
bash <(curl -L -s check.unlock.media)
bash <(curl -L -s media.ispvps.com)
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
curl -sSL https://get.docker.com/ | sh
docker run -d -p 6688:80 ilemonrain/html5-speedtest:latest
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh 4
bash <(curl -fsSL git.io/warp.sh) 4
curl ip.p3terx.com
grep -qE '^[ ]*precedence[ ]*::ffff:0:0/96[ ]*100' /etc/gai.conf || echo 'precedence ::ffff:0:0/96 100' | tee -a /etc/gai.conf
echo 'precedence ::ffff:0:0/96 100' | tee -a /etc/gai.conf
timedatectl set-timezone Asia/Shanghai
curl https://get.acme.sh | sh
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
wget -qO- yabs.sh | bash
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
curl -sL yabs.sh | bash -s -- -i
curl -sL yabs.sh | bash -s -- -5
curl -sL yabs.sh | bash -s -- -5 -i
wget -qO- bench.sh | bash
wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh