Ubuntu 内建使用 UFW (Uncomplicated Firewall) 作为防火墙管理工具, 一般情况下都会开启防火墙, 但有些特殊情况, 例如测试环境需要关闭防火墙作测试, 或者对网络设定进行除错等。
以下是在 Ubuntu 18.04 关闭防火墙的方法。
首先检查目前防火墙是否已经开启, 执行以下指令:
sudo ufw status
防火墙默认是关闭, 会输出:
Status: inactive
如果防火墙已经开启了, 会输出 active:
Status: active
如果需要关闭防火墙, 执行以下指令:
sudo ufw disable
Firewall stopped and disabled on system startup
关闭防火墙后, 要再次开启防火墙, 执行以下指令开启:
sudo ufw enable
这时会出现以下询问句:
Command may disrupt existing ssh connections. Proceed with operation (y|n)?
按 “y” 确认后, 防火墙会开启, 并有以下输出:
Firewall is active and enabled on system startup
版权属于: 三三世界-百宝箱
本文链接: http://33f.net/linux/ubuntu_disable_enable_firewall.html
本文最后更新于2022年05月14日 ,已超过952天没有更新,若内容或图片失效,请留言反馈。
本文允许转载,但请在转载时请以超链接或其它形式标明文章出处
@Doug Shume it's ok for me , you can post here.
Saved as a favorite, I like your website!
If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.
Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!
Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.
Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.
zh.us.to 有效
kms.03k.org 有效
kms.chinancce.com
kms.shuax.com 有效
kms.dwhd.org 有效
kms.luody.info 有效
kms.digiboy.ir 有效
kms.lotro.cc 有效
www.zgbs.cc 有效
cy2617.jios.org 有效
@ 权限问题,试试sudo 再加命令。
你好提示Permission denied 怎么办啊