Conversation

There's some legitimate for host-based firewalls such as avoiding accidental exposed services, determining which applications/services can use the network and access control for services only able to listen on loopback instead of a Unix domain socket.
2
2
We consider it unacceptable which is why we disable listening on loopback for as many services as possible (MariaDB, PostgreSQL) and implement uid-based access control for stuff not supporting that via nftables as a workaround for software deficiencies.
1
6
MariaDB and PostgreSQL do have authentication but I'd rather not rely on their internal authentication configuration. It's much nicer only having a socket and being able to use POSIX permissions, ACLs, MAC, etc. as you can with any other files even if internal config is wrong.
1
4
Also, MySQL/MariaDB listens on 0.0.0.0 by default. A lot of LAMP-type software tends to also do that and whoever connects to the website first gets to configure the password, etc. It's pretty horrible. If somehow the configuration was wiped it just lets anyone compromise it.
1
6
Show replies