add UFW doc

This commit is contained in:
Son NK 2020-01-31 23:45:08 +07:00
parent 49b9167de4
commit e469138c07
2 changed files with 24 additions and 0 deletions

View File

@ -534,6 +534,14 @@ please go to the database, table "users" and set "lifetime" column to "1" or "TR
You don't have to pay anything to SimpleLogin to use all its features.
You could make a donation to SimpleLogin on our Patreon page at https://www.patreon.com/simplelogin if you wish though.
### Misc
The above self-hosting instructions correspond to a freshly Ubuntu server and doesn't cover all possible server configuration.
Below are pointers to different topics:
- [UFW](docs/ufw.md)
## Contributing
All work on SimpleLogin happens directly on GitHub.

16
docs/ufw.md Normal file
View File

@ -0,0 +1,16 @@
SimpleLogin needs to have the following ports open:
- 22: so you SSH into the server
- 25: to receive the incoming emails
- 80 and optionally 443 for SimpleLogin webapp
If you use `UFW` Firewall, you could run the following commands to open these ports:
```bash
sudo ufw allow 22
sudo ufw allow 25
sudo ufw allow 80
# optional, enable 443 if you set up TLS for the webapp
sudo ufw allow 443
```