ubuntu-防火墙相关
ubuntu 防火墙 开启、关闭 等操作
开启端口
开启 2233 端口
1
2
3wilker@ubuntu:~/.ssh$ sudo ufw allow 2233
Rule added
Rule added (v6)
查看防火墙状态
命令:
sudo ufw status verbose
1
2
3
4
5
6
7
8
9
10
11
12
13
14wilker@ubuntu:~/.ssh$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
53 ALLOW IN Anywhere
22 ALLOW IN Anywhere
2233 ALLOW IN Anywhere
53 (v6) ALLOW IN Anywhere (v6)
22 (v6) ALLOW IN Anywhere (v6)
2233 (v6) ALLOW IN Anywhere (v6)