博文

BBR+FQ调优

1:cat > /etc/sysctl.conf << EOF 2:fs.file-max = 6815744 net.ipv4.tcp_no_metrics_save=1 net.ipv4.tcp_ecn=0 net.ipv4.tcp_frto=0 net.ipv4.tcp_mtu_probing=0 net.ipv4.tcp_rfc1337=0 net.ipv4.tcp_sack=1 net.ipv4.tcp_fack=1 net.ipv4.tcp_window_scaling=1 net.ipv4.tcp_adv_win_scale=1 net.ipv4.tcp_moderate_rcvbuf=1 net.core.rmem_max=33554432 net.core.wmem_max=33554432 net.ipv4.tcp_rmem=4096 87380 33554432 net.ipv4.tcp_wmem=4096 16384 33554432 net.ipv4.udp_rmem_min=8192 net.ipv4.udp_wmem_min=8192 net.ipv4.ip_forward=1 net.ipv4.conf.all.route_localnet=1 net.ipv4.conf.all.forwarding=1 net.ipv4.conf.default.forwarding=1 net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr net.ipv6.conf.all.forwarding=1 net.ipv6.conf.default.forwarding=1 EOF 3:sysctl -p && sysctl --system

iperf3指令

 iperf3 -c IP -f m  iperf3 -c IP -f m -R

realm+ws

 github地址:https://github.com/zhboner/realm/tree/master/examples 1   下载运行文件:wget -O realm.tar.gz https://github.com/zhboner/realm/releases/download/v2.4.6/realm-x86_64-unknown-linux-gnu.tar.gz && tar -xvf realm.tar.gz && chmod +x realm github被屏蔽:wget -O realm.tar.gz https://mirror.ghproxy.com/https://github.com/zhboner/realm/releases/download/v2.4.6/realm-x86_64-unknown-linux-gnu.tar.gz && tar -xvf realm.tar.gz && chmod +x realm 2   去/root文件夹下新建config.toml文件,并写入(冒号前ip,冒号后端口): 中转机 [[endpoints]] listen = "127.0.0.1:10000" remote = "127.0.0.1:20000" remote_transport = "ws;host=example.com;path=/chat 落地机 [[endpoints]] listen = "127.0.0.1:20000" remote = "127.0.0.1:30000" listen_transport = "ws;host=example.com;path=/chat 3   去/etc/systemd/system文件夹下新建realm.service文件,并写入: [Unit] Description=realm After=network-online.target Wants=network-online.target systemd-networkd-wait-online.service [Service] Type=simp...

手搓realm,存个教程

1   下载运行文件:wget -O realm.tar.gz https://github.com/zhboner/realm/releases/download/v2.4.6/realm-x86_64-unknown-linux-gnu.tar.gz && tar -xvf realm.tar.gz && chmod +x realm github被屏蔽:wget -O realm.tar.gz https://mirror.ghproxy.com/https://github.com/zhboner/realm/releases/download/v2.4.6/realm-x86_64-unknown-linux-gnu.tar.gz && tar -xvf realm.tar.gz && chmod +x realm 2   去/root文件夹下新建config.toml文件,并写入(冒号前ip,冒号后端口): [[endpoints]] listen = "0.0.0.0:5000" remote = "8.8.8.8:443" [[endpoints]] listen = "0.0.0.0:6000" remote = "[2400:3200::1]:443" 要udp的话前面加 [ network ] no_tcp = false use_udp = true 3   去/etc/systemd/system文件夹下新建realm.service文件,并写入: [Unit] Description=realm After=network-online.target Wants=network-online.target systemd-networkd-wait-online.service [Service] Type=simple User=root Restart=on-failure RestartSec=5s DynamicUser=true WorkingDirectory=/root ExecStart=/root/realm -c /root/config.toml [Instal...

CS的cfg:autoexec

 alias +pwajump "+jump; +duck" alias -pwajump "-jump; -duck" alias +pwawjump "+forward;+jump;" alias -pwawjump "-jump;-forward" alias +pwathrow "-attack;-attack2" alias "+pwalowjump" "+jump;-jump;+duck;-duck" alias +pwaswitchknife slot3 alias -pwaswitchknife lastinv alias "refundall" "sellback 0;sellback 1;sellback 2;sellback 3;sellback 4;sellback 5;sellback 6;sellback 8;sellback 9;sellback 10;sellback 11;sellback 12;sellback 13;sellback 14;sellback 15;sellback 16;sellback 17;sellback 18;sellback 26;sellback 26;sellback 27;sellback 28;sellback 29;sellback 30;sellback 32;sellback 33;sellback 34;sellback 35;play ui\panorama\itemtile_click_02.vsnd_c" alias +f5ejump "+jump; +duck" alias -f5ejump "-jump; -duck" alias +f5ewjump "+forward;+jump;" alias -f5ewjump "-jump;-forward" alias +f5ethrow "-attack;-attack2" alias "+f5elowjump" "+jump;...

VPS指令合集

swap脚本:curl -sL https://sh.idc.fail/swapon.sh -o swapon.sh sudo bash swapon.sh -S 1024 -p /swapfile argox:bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh) 歇斯底里2:wget -N --no-check-certificate https://raw.githubusercontent.com/Misaka-blog/hysteria-install/main/hy2/hysteria.sh && bash hysteria.sh (5080端口)                             无法获取配置文件运行这个命令:chmod 777 /root X-UI依赖包:apt update -y&&apt install -y curl&&apt install -y socat X-UI:bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) VPS一键脚本工具:curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh 八合一脚本:wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh 编辑sshd_config:nano /etc/ssh/sshd_config...