Oracle Cloud 小鸡设置

个人喜欢先更新一下系统

apt update && apt upgrade -y

改为 root 密码登陆

echo root:密码 |chpasswd root
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
systemctl restart sshd

开启 BBR

#修改系统变量
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

#保存生效
sysctl -p

#查看内核是否已开启BBR
lsmod | grep bbr

#显示如下,即成功
tcp_bbr                20480  2

放行全部端口(重启失效)

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables-save

持续化规则(重启不失效)

#安装iptables-persistent
apt install iptables-persistent

#永久保存规则
netfilter-persistent save
netfilter-persistent reload

对于关闭防火墙更暴力点的方法,可以选择如下两种

rm -rf /etc/iptables && reboot

或

rm -rf /etc/iptables/rules.v4
rm -rf /etc/iptables/rules.v6
reboot

同时你也需要进入后台配置一下入站规则,我是开放的所有协议然后你就可以干点你想做的了,至于 DD 系统,我打算过段时间再搞,现阶段封号的太多了已找甲骨文适配的 DD 脚本,下方演示为 Debian 10

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "密码" -port "端口"
© 版权声明
THE END
点赞0赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容