Ubuntu20.4相关命令

教程类 · 2022-04-09

iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

宝塔纯净版 7.6.0版本 [稳定版本/推荐]
Ubuntu/Deepin全新安装命令:
wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && sudo bash install.sh

搭建xray
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/paniy/Xray_bash_onekey/main/install.sh" && chmod +x install.sh && bash install.sh

XUI 以后视频讲吧
wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x ./trojan_v2ray_install.sh && ./trojan_v2ray_install.sh
bash <(curl -Ls https://raw.githubusercontent.com/sprov065/x-ui/master/install.sh)

BBR 加速
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

全能工具箱:wget -N https://cdn.jsdelivr.net/gh/Misaka-blog/MisakaLinuxToolbox@master/MisakaToolbox.sh && chmod -R 777 MisakaToolbox.sh && bash MisakaToolbox.sh

Ubuntu开放指定端口:sudo ufw allow 9200【允许外部访问9200端口(tcp/udp)】

防火墙解除
centos操作如下:

停止firewall
systemctl stop firewalld.service

禁止firewall开机启动
systemctl disable firewalld.service

关闭iptables
service iptables stop

去掉iptables开机启动
chkconfig iptables off

oracle Linux操作如下:

停止firewall
systemctl stop firewalld.service

禁止firewall开机启动
systemctl disable firewalld.service

ubuntu操作如下:

Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
reboot

强制删除
rm -rf /etc/iptables && reboot

Ubuntu 下查看哪些端口是开放的,分别是什么进程在监听
sudo netstat -tlpn

  1. 1 2023-10-20

    555

  2. 1 2023-10-20

    1

  3. 1 2023-10-20

    1

  4. 1 2023-10-20

    1

    1. 1 2023-10-20
      @1

      555

  5. 1 2023-10-20

    1

    1. 1 2023-10-20
      @1

      555

    2. 1 2023-10-20
      @1

      1

  6. 1 2023-10-19

    555

    1. 1 2023-10-20
      @1

      1

Theme Jasmine by Kent Liao