ubuntu,debian 放开80和443端口,开启bbr
标签搜索

ubuntu,debian 放开80和443端口,开启bbr

香蕉
2022-10-29 / 4 评论 / 1,110 阅读 / 正在检测是否收录...

放开80和443端口

1、打开80,443端口

iptables -I INPUT -p tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp --dport 443 -j ACCEPT

2、保存规则(重启后失效)

iptables-save

3、持久化保存
1)安装iptables-persistent

apt-get install iptables-persistent

2)持久化规则

netfilter-persistent save
netfilter-persistent reload

开启BBR

1、修改系统变量

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

2、保存生效

sysctl -p

3、查看内核是否已开启BBR

 lsmod | grep bbr

显示如下,即成功

tcp_bbr                20480  14
0

评论 (4)

取消
  1. 头像
    fhkszjrrlb
    Windows 10 · Google Chrome

    哈哈哈,写的太好了https://www.cscnn.com/

    回复
  2. 头像
    dejrtloxxy
    Windows 10 · Google Chrome

    立意高远,以小见大,引发读者对社会/人性的深层共鸣。

    回复
  3. 头像
    ykimkudtoi
    Windows 10 · Google Chrome

    文章紧扣主题,观点鲜明,展现出深刻的思考维度。

    回复
  4. 头像
    ijejbjaooa
    Windows 10 · Google Chrome

    批判锋芒犀利,直指问题症结所在。

    回复