echo 'PS1="\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] "' >> ~/.bashrc && source ~/.bashrc
bash up.sh
bash x.sh
bash SSL.sh
bash hy2.sh
set +o history;
# 启用内存交换分区（swap）以减少物理内存压力
sudo sysctl vm.swappiness=10 # 默认值是 60，降低值表示系统更少使用 swap
curl cip.cc
mkdir -p ~/.ssh && echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGg0YhbPsaRCu0P4WxKH2dmRLsfkDRKx8nxDRtGZkxb administrator@0bjahije-zUyAj2' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys
hostnamectl
uname -a
l2tp -a
yum -y install expect && wget --no-check-certificate https://raw.githubusercontent.com/teddysun/across/master/l2tp.sh && chmod +x l2tp.sh && expect -c "
set timeout 30
spawn ./l2tp.sh
expect \"IP-Range:\" { send \"\r\" }
expect \"PSK:\" { send \"hm123456\r\" }
expect \"Username:\" { send \"root\r\" }
expect \"password:\" { send \"hm123456\r\" }
expect \"any key to start\" { send \"\r\" }
interact
"
bash bbr.sh
set +o history;
export LANG="en_US";export LANGUAGE="en_US";export LC_ALL="en_US";top
bash bbr.sh
bash -c 'RED="\e[31m";GREEN="\e[32m";YELLOW="\e[33m";CYAN="\e[36m";BOLD="\e[1m";RESET="\e[0m";echo -e "${CYAN}${BOLD}=== 全系统 L2TP 一键彻底卸载 ===${RESET}";echo -e "${YELLOW}[1/5] 停止并禁用L2TP/IPSec相关服务${RESET}";for svc in xl2tpd ipsec strongswan;do systemctl stop $svc 2>/dev/null;systemctl disable $svc 2>/dev/null;echo -e "  · 已处理服务: $svc";done;echo -e "${YELLOW}[2/5] 自动匹配包管理器卸载全套组件(xl2tpd/libreswan/strongswan/ppp)${RESET}";PKG_LIST="xl2tpd libreswan strongswan ppp";for mgr in dnf yum apt zypper pacman;do if command -v $mgr &>/dev/null;then echo -e "${GREEN}✔ 识别包管理器: $mgr${RESET}";case $mgr in dnf|yum) $mgr remove -y $PKG_LIST;$mgr autoremove -y;;apt) apt purge -y $PKG_LIST;apt autoremove -y;;zypper) zypper remove -y $PKG_LIST;;pacman) pacman -Rns --noconfirm $PKG_LIST 2>/dev/null||true;;esac;break;fi;done;echo -e "${YELLOW}[3/5] 删除所有L2TP/IPSec残留配置与数据目录${RESET}";rm -rf /etc/xl2tpd /etc/ppp /etc/ipsec.d /var/log/xl2tpd /var/run/xl2tpd /var/lib/strongswan /var/lib/libreswan /etc/ipsec.conf /etc/ipsec.secrets /etc/firewalld/services/xl2tpd.xml;echo -e "${YELLOW}[4/5] Firewalld移除L2TP/IPSec放行端口（仅RHEL/CentOS）${RESET}";if command -v firewall-cmd &>/dev/null;then firewall-cmd --permanent --remove-port=500/udp --remove-port=4500/udp --remove-port=1701/udp --remove-service=ipsec 2>/dev/null;firewall-cmd --reload;echo -e "${GREEN}✔ 防火墙规则清理完成${RESET}";else echo -e "${YELLOW}ℹ 当前系统无firewalld，跳过防火墙处理${RESET}";fi;echo -e "${GREEN}${BOLD}[5/5] L2TP全套组件卸载清理完毕，无残留✅${RESET}"'
yum -y install expect && wget --no-check-certificate https://raw.githubusercontent.com/teddysun/across/master/l2tp.sh && chmod +x l2tp.sh && expect -c "
set timeout 30
spawn ./l2tp.sh
expect \"IP-Range:\" { send \"\r\" }
expect \"PSK:\" { send \"hm123456\r\" }
expect \"Username:\" { send \"root\r\" }
expect \"password:\" { send \"hm123456\r\" }
expect \"any key to start\" { send \"\r\" }
interact
"
apt-get install nmap -y
nmap -sU -p 500,1701,4500 你的服务器IP
# 检查xl2tpd服务状态
systemctl status xl2tpd
# 检查ipsec服务状态（L2TP通常和ipsec搭配使用）
systemctl status ipsec
# 查看L2TP虚拟网络接口ppp0是否存在
ip addr show ppp0
# 查看xl2tpd控制状态
echo "status" | sudo tee /var/run/xl2tpd/l2tp-control
sudo systemctl status ssh
systemctl status ipsec.service
systemctl status xl2tpd.service
sudo yum update -y
sudo yum install epel-release -y
# 安装 L2TP 相关组件
sudo yum install ppp libreswan xl2tpd iptables-services firewalld -y
curl cip.cc
bash ssh.sh
set +o history;
export LANG="en_US";export LANGUAGE="en_US";export LC_ALL="en_US";top
systemctl restart ipsec xl2tpd
journalctl -u ipsec -n 20 --no-pager | grep -v 'MODP\|SHA\|AES\|DH'
set +o history;
ping icd.mbvpn.cn
ping igz.mbvpn.cn
hostnamectl
uname -a
echo -e "root\ny" | bash l2tp.sh
bash l2tp.sh
echo -e "root\ny" | bash l2tp.sh
bash ssh.sh
bash opencode.sh
export LANG="en_US";export LANGUAGE="en_US";export LC_ALL="en_US";top
