我已经运行了这个命令十次(然后重新启动了盒子):
sudo iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 5432 -j ACCEPT
我试过了:
sudo ufw allow 5432
并运行:
ufw status
我得到了结果:
Status: active
To Action From
-- ------ ----
5432/tcp ALLOW Anywhere
80 ALLOW Anywhere
22 ALLOW Anywhere
5432 ALLOW Anywhere
5432/tcp ALLOW Anywhere (v6)
80 ALLOW Anywhere (v6)
22 ALLOW Anywhere (v6)
5432 ALLOW Anywhere (v6)
但是5432端口仍然没有打开。
什么不见了?