[other] 防火墙问题
Tofloor
poster avatar
db-root
deepin
2023-09-12 21:43
Author

前景是这样子的,我使用的deepin系统,因为使用时发现没有firewalld、ufw,然后我使用apt下载了firewalld和ufw,但是无法使用,就又使用apt autoremove卸载了 ,就这样,我的电脑(Windows)就访问不了deepin的网络端口了。
期间使用过/sbin/iptables -I INPUT -p tcp --dport 9090 -j ACCEPT这条命令开启9090端口,9090就可以访问了,所以我现在想要把iptables,firewalld,ufw全部关掉,

有没有大佬帮忙看看,搞不懂deepin还有什么会影响这个访问。或者告知一下如何使用furewalld服务也可以
image.png

Reply Favorite View the author
All Replies
db-root
deepin
2023-09-12 21:55
#1

sudo iptables -F # 清除所有防火墙规则
sudo iptables -X # 删除用户自定义链
sudo iptables -t nat -F # 清除NAT表规则
sudo iptables -t nat -X # 删除用户自定义NAT表链

我是用这些命令关闭了防火墙规则,目前没遇到问题,但是总感觉怪怪的,希望大佬们帮忙看看,如果有什么好用的方法,麻烦告知一下

Reply View the author
db-root
deepin
2023-09-12 22:01
#2

image.png

Reply View the author