✓ 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

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

I would still like the app to be accessible to anyone but the db would have no outside access except for a few ips.
Only the App and the few ips can access the db.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct