甲骨文云ssh转发节点

教程类 · 2022-04-09

获取root权限:
sudo -i

Ubuntu系统下:
开放所有端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

转发代码:
国内机器
wget --no-check-certificate -qO natcfg.sh http://www.arloor.com/sh/iptablesUtils/natcfg.sh && bash natcfg.sh
国外机器
wget --no-check-certificate -qO natcfg.sh https://raw.githubusercontent.com/arloor/iptablesUtils/master/natcfg.sh && bash natcfg.sh

转发端口:1001(自定义)
被转发节点端口号
被转发节点ip(或域名),建议填ip。

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

防火墙解除
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

取消回复
  1. 1 2023-10-20

    555

  2. 1 2023-10-20

    1

  3. 1 2023-10-20

    1

    1. 1 2023-10-20
      @1

      555

    2. 1 2023-10-20
      @1

      1

  4. 1 2023-10-20

    1

    1. 1 2023-10-20
      @1

      555

    2. 1 2023-10-20
      @1

      1

  5. 1 2023-10-19

    555

    1. 1 2023-10-20
      @1

      1

    2. 1 2023-10-20
      @1

      1

Theme Jasmine by Kent Liao