Unicast Address Number This setting defines the maximum number of global unicast IPv6 addresses that can be assigned to a single interface. You can check the current setting like so: $ sysctl net.ipv6.conf.default.max_addresses net.ipv6.conf.default.max_addresses = 16 Note: The default keyword changes the interface default setting for any interface that does not have a custom setting specified (even if it matches the default setting). You can replace it with either a specific interface name (so the setting applies only to that interface) or the keyword all to configure all interfaces at once (ignoring interface specific custom settings).
Maximum Segment Size (MSS) You can check the current setting like so: $ sysctl net.ipv4.route.min_adv_mss net.ipv4.route.min_adv_mss = 256 The MSS advertised by the host depends on the first hop route MTU, but will never be lower than this setting. Dynamic Configuration To change the running configuration, use this command with your desired value: $ sysctl -w net.ipv4.route.min_adv_mss=NNN You can confirm like so: $ sysctl net.ipv4.route.min_adv_mss Permanent Configuration To make this setting persistent across reboots, edit the /etc/sysctl.
SYN Retries Number of times a SYN is retried if no response is received. A lower value means less memory usage and reduces the impact of SYN flood attacks but on lossy networks a 5+ value is probably worthwhile. Also see the SYN Cookies section. You can check the current setting like so: $ sysctl net.ipv4.tcp_syn_retries net.ipv4.tcp_syn_retries = 6 The interval between each resend is doubled every time, starting from 3s.
Time to Live (TTL) Simply the maximum number of hops a packet may travel. The TTL can also be specified on a per destination network basis. You can check the current setting like so: $ sysctl net.ipv4.ip_default_ttl net.ipv4.ip_default_ttl = 64 Dynamic Configuration To change the running configuration, use this command with your desired value: $ sysctl -w net.ipv4.ip_default_ttl=NN You can confirm like so: $ sysctl net.ipv4.ip_default_ttl Permanent Configuration To make this setting persistent across reboots, edit the /etc/sysctl.
tcp nonlocal bind This setting allows binding (by applications etc.) to IP addresses that are not assigned to a network interface on the host (thus nonlocal). This may be required when using VRRP with Keepalived in conjunction with HA Proxy for instance. If it is not enabled, HA Proxy cannot bind to a VRRP addresses unless the local host is the VRRP master for it. You can check the current setting like so:
To minimise the privileges you assign to a Linux container, to increase security and minimise risk, Linux capabilities should be used instead of granting full root privileges. These provide the least privilege necessary. Here’s the capabilities required by contemporary network applications. HAProxy : None Pacemaker & Corosync : NET_ADMIN and NET_BROADCAST Keepalived : NET_ADMIN and NET_BROADCAST Mounting NFS : SYS_ADMIN Mounting SMB : CAP_SYS_ADMIN and CAP_DAC_READ_SEARCH Note: You should omit any leading CAP_ when specifiying capabilities in a Docker Compose file or with the docker run command.