✓ Solved
How do I setup firewall to block all access from outside
I have debian linode set up. Using 2 docker containers.
1 container is app and 1 container is mysql db.
What I would like to do is allow only the app to connect to the db.
Firewall all outside access except a few trusted IP's.
Any help much appreciated.
Thank You
3 Replies
✓ Best Answer
You can use iptables/ipset to restrict access to the mysql port (3060):
-- sw
localhost is the "loopback address": 127.0.0.1 and ::1. It should always be open. Very bad things can happen if you disable them.
Traffic to/from localhost is local to your Linode only and is never routed outside it.
-- sw