mirror of
https://github.com/systemd/systemd.git
synced 2025-03-13 00:58:27 +03:00
This deprecates IPForward= setting, which unconditionally controled the global setting, even though it is a setting in .network file. Instead, this introduces new IPv4Forwarding= and IPv6Forwarding= settings both in .network and networkd.conf. If these settings are specified in a .network file, then the per-interface forwarding setting will be configured. If specified in networkd.conf, then the global IP forwarding setting will be configured. Closes #30648.
17 lines
240 B
SYSTEMD
17 lines
240 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Match]
|
|
Name=server
|
|
|
|
[Network]
|
|
Address=192.168.5.1/24
|
|
IPv4Forwarding=yes
|
|
DHCPServer=yes
|
|
IPv6AcceptRA=no
|
|
|
|
[DHCPServer]
|
|
BindToInterface=no
|
|
PoolOffset=150
|
|
PoolSize=1
|
|
DNS=192.168.5.1
|
|
NTP=192.168.5.1
|