Hmm, I haven’t modified either the systemd-networkd service or the shorewall service. I believe that indicating the wan
and br0
interfaces should be configured for IPv4 is sufficient - here’s my relevant files:
[root@router ~]$ cat /etc/systemd/network/br0.network
[Match]
Name=br0
[Network]
Address=192.168.1.1/24
IPForward=ipv4
IPMasquerade=yes
ConfigureWithoutCarrier=yes
[root@router ~]$ cat /etc/systemd/network/wan.network
[Match]
Name=wan
[Network]
IPv6AcceptRA=no
DHCP=ipv4
BindCarrier=eth0
IPForward=ipv4
[root@charon ~]#
As far as I know, this should set the interfaces into a forwarding state.