mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 18:27:04 +03:00
5a8bcb674f
This adds two new settings to networkd's .network files: IPForwarding=yes and IPMasquerade=yes. The former controls the "forwarding" sysctl setting of the interface, thus controlling whether IP forwarding shall be enabled on the specific interface. The latter controls whether a firewall rule shall be installed that exposes traffic coming from the interface as coming from the local host to all other interfaces. This also enables both options by default for container network interfaces, thus making "systemd-nspawn --network-veth" have network connectivity out of the box.
18 lines
409 B
SYSTEMD
18 lines
409 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Match]
|
|
Name=ve-*
|
|
Driver=veth
|
|
|
|
[Network]
|
|
Address=0.0.0.0/28
|
|
IPv4LL=yes
|
|
DHCPServer=yes
|
|
IPForward=yes
|
|
IPMasquerade=yes
|