interfaces-forward5
Forwarding vocabulary for the interfaces(5) file format
Overview
Linux allows for configuration of IP packet forwarding behavior on a protocol and interface basis. The following options allow for this configuration.
Options
The forward executor will only modify the sysctl configuration if these options are provided, otherwise other mechanisms such as /etc/sysctl.conf may be used.
forward-ipv4 yes|no
Whether the interface should forward unicast IPv4 packets.
forward-ipv6 yes|no
Whether the interface should forward unicast IPv6 packets.
forward-ipv4-mc yes|no
Whether the interface should forward multicast IPv4 packets.
forward-ipv6-mc yes|no
Whether the interface should forward multicast IPv6 packets.
Examples
The typical home router scenario will want to forward both IPv4 and IPv6 packets:
iface WAN use dhcp forward-ipv4 yes forward-ipv6 yes iface LAN address 192.168.0.1/24 forward-ipv4 yes forward-ipv6 yes
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.