Ubuntu防火墙设置
1.启用防火墙:ufw enable
2.禁用防火墙:ufw disable
3.允许特定端口(例如,允许端口80):ufw allow 80/tcp
4.拒绝特定端口(例如,拒绝端口25):ufw deny 25
5.允许特定服务(例如,SSH):ufw delete allow ssh
6.查看状态:ufw status
1.启用防火墙:ufw enable
2.禁用防火墙:ufw disable
3.允许特定端口(例如,允许端口80):ufw allow 80/tcp
4.拒绝特定端口(例如,拒绝端口25):ufw deny 25
5.允许特定服务(例如,SSH):ufw delete allow ssh
6.查看状态:ufw status