ubuntu中关闭防火墙

在跑puppet的时候出现了这个问题

root@ubuntu:/var/lib/puppet# puppet agent -tv

err: Could not retrieve catalog from remote server: Connection refused - connect(2)

warning: Not using cache on failed catalog

err: Could not retrieve catalog; skipping run

一查资料原来是防火墙的问题 果断关之

root@stgman-desktop:~# sudo ufw disable

防火墙在系统启动时自动禁用