Changes for page Configuring a VPS machine from scratch
Last modified by Alexandru Pentilescu on 2024/07/22 21:37
From version 4.4
edited by Alexandru Pentilescu
on 2022/11/13 22:10
on 2022/11/13 22:10
Change comment:
There is no comment for this version
To version 6.1
edited by Alexandru Pentilescu
on 2022/11/13 22:21
on 2022/11/13 22:21
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -117,5 +117,19 @@ 117 117 118 118 This instructs the package to reboot the whole system, automatically, whenever an update requires it, the next time the system clock reaches this specific configured time. I set mine to reboot the system, whenever an update requires it, at 2AM. You may change the time to whichever fits your needs. 119 119 120 += Installing docker = 120 120 122 +Docker is almost an irreplaceable piece of software that will be critical to your whole infrastructure. Docker needs to be installed on the system properly. In order to do so, please follow the guide [[here>>https://docs.docker.com/engine/install/ubuntu/]] 123 + 124 += Force postfix to bind to non-local IP addresses on start = 125 + 126 +If we plan on using our SMPT server to relay emails coming from our docker containers, we will have to force postfix to bind to an IP address that's different from localhost. This needs to be done because, if we configure postfix to only bind to localhost, it will effectively be unreachable to our docker containers and they will not be able to use it as a relay. 127 +In order to allow for postfix to bind to non-local addresses, we have to add the following configuration file /etc/sysctl.d/80-network.conf with the following contents: 128 + 129 +{{code language="ini"}} 130 +net.ipv4.ip_nonlocal_bind = 1 131 +net.ipv6.ip_nonlocal_bind = 1 132 +{{/code}} 133 + 134 +Honestly, the "ipv6" line is unnecessary for our purposes, but I'm adding it anyway. After this file is added, after reboot, postfix will be able to bind itself to nonlocal addresses successfully. 121 121 )))