так
теперь ufw
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp (OpenSSH) ALLOW IN Anywhere
5432 ALLOW IN
172.17.0.0/16 22/tcp (OpenSSH (v6)) ALLOW IN Anywhere (v6)
и curl -v
176.99.12.122:5432* Trying
176.99.12.122:5432...
* Connected to 176.99.12.122 (
176.99.12.122) port 5432 (#0)
> GET / HTTP/1.1
> Host:
176.99.12.122:5432> User-Agent: curl/7.69.1
> Accept: */*
>
* Empty reply from server
* Connection #0 to host
176.99.12.122 left intact
curl: (52) Empty reply from server