I have rented several cloud servers from Hetzner. These are all on a private network (10.20.20.0/24), with only one server of them even having a public IP.
Following this German tutorial, I want to set up a site-to-site connection to my network back home. In part 3 of the tutorial, starting at about minute 14:00, it is shown that Hetzner requires a special setting for the NAT (outbound NAT, see screenshot).
But now I don't want to build my WireGuard tunnel gateway with pfSense, but with Debian. The background idea is that I use the server CAX11 for this and want to use the unused computing power for a few Docker containers. How can I do this outbound NAT with iptables or nftable? My WAN interface with the public IP is eth0 and that of the LAN is enp7s0. enp7s0 gets the address 10.20.20.2/32 assigned.