Protecting the Server

lun. 16 février 2026

The server we are setting up needs to be protected. My goal is to open as little as ports as possible. Specially, I would prefer that most services use http i.e. port 80 and to be secure https (port 443).

To achieve this goal, we need a certificate proving that our server is what it prenteds to be. This make be a big mess with certifying authorities but fortunately, there letsencrypt that provides 3-month long certificates but there are bots to renew them.

Requirement

Doing this require (1) a domain name, celled thereafter $DOMAIN and (2) to open port 80 of your box. With FreeBox, we need to pass in full-stack mode (from the customer configuration page).

The configuration of the port retargetting:

  • Destination IP: 192.$SERVER
  • Source IP: all
  • Protocol: TCP
  • Port range: 80-80
  • Port destination: 80

Setting up the certificate

First, we install the bot:

sudo apt install certbot python3-certbot-apache

And we can run it:

$ sudo certbot --apache -d $DOMAIN

It will install itself in the Apache 2 configuration files

Redirecting port 443

In orerto access your web pages at address: http://$DOMAIN, you have to redirect port 443 in your preferred box:

  • Destination IP: 192.$SERVER
  • Source IP: all
  • Protocol: TCP
  • Port range: 443-443
  • Port destination: 443

Final Words

It is important that all this software is free (from freedom) but not free (for price). Peoples are implementing it and maintaining convenient websites as letsencrypt. From time to time, it could helpfull to donate to organization supporting them. In this case,

Category: EHome Tagged: letsencrypt https


RaspberryPi storage

jeu. 12 février 2026

My Raspberry Pi 2 uses its SD-Card as main storage for the OS and the user data, usually called home directory. This won't be enough for the data I want to put (service web sites, PIM, saving, photos, movies, etc).

So I need another storage and I buy an external …

Category: EHome Tagged: disk partition mount ext4

Read More

LDAP Server

lun. 19 décembre 2022

After a long break, I come back to my home server with, finally,a working version of LDAP, tadam! It is so much complex, such a mess but I finally get a working version of my LDAP and I will explain now how.

All along the presentation below, I will …

Category: EHome Tagged: ldap pam sssd slapd authentification

Read More

Lists

lun. 19 décembre 2022

This page is not really a page blog but provides miscellenaous lists that are useful to set up EHome.

The list of configuration files:

  • /etc/radicale/config -- PIM server
  • /etc/systemd/system/radicale.service -- PIM server

The list of data directories and files:

  • /var/lib/radicale/collections -- PIM server
  • /var …

Category: EHome

Read More

Installing my PIM Server

dim. 18 décembre 2022

Package installation

Radicale is a free Python-based PIM server. We need first to have Python 3.5 (at least) and PIP installed:

$ sudo apt install python3
$ sudo apt install pi

Then we can install Radicale:

$ pip install --upgrade radicale

Server side

We will install Radicale as a service. So we …

Category: EHome Tagged: pim agenda addressbook http

Read More

Opening Ehome to the World

dim. 18 décembre 2022

Ok now it is time to open my EHome to the world: mainly to make a bridge between my Internet box (a FreeBox Revolution) and the internet. We have to:

  • Install an HTTPD server on EHome.
  • Redirect port from the Freebox to the port 80 of EHome.
  • Publish some content …

Category: EHome Tagged: apache http

Read More

Birth of a Project

lun. 03 octobre 2022

It's decided, I'm fed up with Google and equivalent commercial of emails and other PIMs (Personnal Info Managers). I need to share calendars, contacts, etc with my family and Google solution seemed to be promising. In fact, it perfectly worked for several years but, since one year, I encounter some …

Category: EHome

Read More
Page 1 of 1