Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
deepin的防火墙默认是开的么?
Experiences and Insight
1710
views ·
4
replies ·
To
floor
Go
bulbul
deepin
2017-10-11 01:12
Author
我发现iptables命令也有,也支持iptables -L那些命令,但是iptables stop,iptables start这些命令都不能用,防火墙关不掉,我现在想开一些服务都开不成,盼解决
Reply
Like 0
Favorite
View the author
All Replies
jingle
deepin
2017-10-11 01:45
#1
没有配置吧
Reply
Like 0
View the author
iminto
deepin
2017-10-11 04:54
#2
现在的Linux早就没有iptables服务了,iptables现在只是个普通应用。。。
所以iptables stop,iptables start这些命令自然都不能用了。因为这些是针对服务操作的命令,而iptables不是一个服务,所以无效
Reply
Like 0
View the author
临之
deepin
2017-10-11 18:29
#3
是开的,不关闭或不加规则就不能对外开放特定端口
Reply
Like 0
View the author
duanyao
deepin
2017-10-11 19:30
#4
注意,iptables 只针对 IPv4,IPv6 要用 ip6tables 来操作。
用命令清除现有的规则:
sudo iptables -F
sudo iptables -X
sudo iptables -t nat -F
sudo iptables -t nat -X
sudo iptables -t mangle -F
sudo iptables -t mangle -X
sudo iptables -t raw -F
sudo iptables -t raw -X
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo ip6tables -F
sudo ip6tables -X
sudo ip6tables -t nat -F
sudo ip6tables -t nat -X
sudo ip6tables -t mangle -F
sudo ip6tables -t mangle -X
sudo ip6tables -t raw -F
sudo ip6tables -t raw -X
sudo ip6tables -P INPUT ACCEPT
sudo ip6tables -P FORWARD ACCEPT
sudo ip6tables -P OUTPUT ACCEPT
列出现有规则:
sudo iptables -L
sudo ip6tables -L
如果不是类似这样的,那么就是有规则了:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
不清楚 deepin 的默认规则是在哪里配置的。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Вы настраиваете внешний вид Deepin?
screenshot problem
Error when installing ms edge browser
Как установить xDroid (麟卓卓懿) на Deepin 25
Popular Events
More