Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ufw firewall #226

Closed
wants to merge 3 commits into from
Closed

Add ufw firewall #226

wants to merge 3 commits into from

Conversation

gadelkareem
Copy link
Contributor

@gadelkareem gadelkareem commented Nov 16, 2018

Adds ufw with these rules:

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22                         ALLOW IN    Anywhere
Anywhere                   ALLOW IN    10.0.1.0/24
Anywhere                   ALLOW IN    10.244.0.0/16
6443                       ALLOW IN    Anywhere
80                         ALLOW IN    Anywhere
443                        ALLOW IN    Anywhere
22 (v6)                    ALLOW IN    Anywhere (v6)
6443 (v6)                  ALLOW IN    Anywhere (v6)
80 (v6)                    ALLOW IN    Anywhere (v6)
443 (v6)                   ALLOW IN    Anywhere (v6)

fixes #36

@mavimo
Copy link
Collaborator

mavimo commented Nov 18, 2018

@gadelkareem thx for your contribution!

I'm not sure if we should include the FW (and the define rules) in core or define it as add-on. IMHO rules that we are going to add, where we expose only few public port can prevent someone to use the config without alterate each machine manually, eg when exposed service use non 80 / 443 port, this is a good default only for web tool, but some other services should need other port that was closed (eg: if user want to expose a stateful service like MySQL, InfluxDB, Postgres, Cassandra, ...).

@gadelkareem
Copy link
Contributor Author

I agree! I will do another PR

@gadelkareem
Copy link
Contributor Author

added in #228

@tckb tckb mentioned this pull request May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firewall security
2 participants