[systemd-devel] networkd questions

Lennart Poettering lennart at poettering.net
Mon Dec 21 15:15:45 UTC 2020


On Fr, 04.12.20 03:50, Dan Egli (dan at newideatest.site) wrote:

> I've got an issue or two with networkd that I can't seem to resolve. I hope
> someone here can help me.
>
> 1) I have a particular machine configured to forward and Masquerade ipv4
> packets. But when networkd loads, I see this in the journal:
> enp0s3: Could not enable IP masquerading, ignoring: Operation not supported
>
> Yet I looked in the kernel's .config and as far as I can tell, masquerading
> IS enabled. It's certainly enabled for netfilter. If there's somewhere else
> I should look, where?
>
> Second, how can I configure the dhcp server portion to sent out reserved
> IPs, i.e. when MAC address AAAA:BBBB:CCCC:DDDD:EEEE:FFFF requests an
> address, give it W.X.Y.Z and hostname H.

Maybe your distro disabled support for iptables during systemd build?
This requires libiptc development headers to be installed during
build.

Also note that your kernel needs to enable iptables (not nftables) for
this to work.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list