On 12/10/2024 22:51, Dmitrii Odintcov wrote:
On the desktop side, I am unable to use the IPv4 method "shared to other computers"
Perhaps you may configure dnscrypt to listen just lo interface, leaving ethernet one to dnsmasq.
Another option is to configure NetworkManager connection with static address instead of shared connection and either start dnsmasq and adjust nftables rules from hooks or to configure other computer (you called it "server") with static address.
On the server side, I am not sure how to configure `systemd-networkd` DHCP/route settings to use the shared connection.
In the case of DHCP it should receive all necessary parameters from DHCP server (dnsmasq), in the case of static network configuration set your KDE machine (ethernet IP address) as the gateway. Debian reference has some section on systemd-networkd.
I have set `net.ipv4.ip_forward=1` and have tried the esoteric iptables MASQUERADE approach but I'm just not sure how all of this ties together.
Shared connection in NetworkManager should do it for you.
Hoping for some advice!
You should provide more info nmcli nmcli device nmcli connection and check if nmcli connection show "CONNECTION_NAME" gives expected values (long enough output) networkctl networkctl status networkctl status INTERFACE_NAME