Ubuntu的防火墙一般是关闭的
查看状态
python
ufw status

关闭防火墙
python
ufw disable
开启防火墙
python
ufw enable