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

[Enhancement] Firewall (UFW) #8

Open
MalteKiefer opened this issue Oct 15, 2021 · 0 comments
Open

[Enhancement] Firewall (UFW) #8

MalteKiefer opened this issue Oct 15, 2021 · 0 comments

Comments

@MalteKiefer
Copy link
Contributor

Enhancement

There should be the possibility to activate and manage a firewall in the CP.

It offers itself here to use UFW.
For Python there is a small wrapper: https://pypi.org/project/pyufw/ with it the administration of the firewall is very simple.

Procedure

  • When activating check if UFW is installed, if not install it.
  • Automatically set the rules for SSH, FastCP, HTTP and HTTPS:
ufw.add("allow 22")
ufw.add("allow 80")
ufw.add("allow 443")
ufw.add("allow 2050")

These rules should be the default.
In addition, you should be able to add or delete more rules.
This should be kept very simple in the style of FastCP, meaning that only the services are displayed.
Something like:

Allow Service: SMTP
Allow Service: SMTPS
Allow Service: IMAP
Allow Service: IMAPS
Allow Service: DNS

When a rule is set, you change the button from Allow to Block.
You should see all rules that are active, and you should be able to delete them.

Version 2

In the further course there should be an expert view, which allows creating more exact rules, e.g.: blocking of IP's and the like.

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

No branches or pull requests

1 participant