From e469138c07b313a99bf4c1d7880b7de99c361264 Mon Sep 17 00:00:00 2001 From: Son NK Date: Fri, 31 Jan 2020 23:45:08 +0700 Subject: [PATCH] add UFW doc --- README.md | 8 ++++++++ docs/ufw.md | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docs/ufw.md diff --git a/README.md b/README.md index 016b08fb..fb7cf642 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docs/ufw.md b/docs/ufw.md new file mode 100644 index 00000000..7bcc0573 --- /dev/null +++ b/docs/ufw.md @@ -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 +``` +