Skip to content

Commit

Permalink
sysctl.conf: Allow inet free binds
Browse files Browse the repository at this point in the history
Allow inet free binds (bind to any ip address) so that services which
bind to specific ip addresses (e.g. $MX_IPADDR) don't need to wait for
network setup.

This simplifies our startup, because we can avoid to pull
network-online.target or order units after network.service just to to be
able to listen to a specific address.

Note, that we still need network to resolve names to addresses.
  • Loading branch information
donald committed Jul 4, 2023
1 parent daf7f8a commit 4c604b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc_etc_files/sysctl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ kernel.shmall = 34359738368
# user request: Allow CPU event access by users without CAP_SYS_ADMIN

kernel.perf_event_paranoid = -1

# allow inet free binds (bind to any ip address) so that services which bind to
# specific ip addresses (e.g. $MX_IPADDR) don't need to wait for network setup

net.ipv4.ip_nonlocal_bind = 1
net.ipv6.ip_nonlocal_bind = 1

0 comments on commit 4c604b9

Please sign in to comment.