I set up the server as described here: https://apuppet.org/installation/
However the mobile agent doesn't work: it freezes at connection.
All required ports (including all UDP) are opened on the firewall. The server is behind the NAT and the public IP address of the host differs from the network address.
How to fix the issue?