I want to make a server that responds
open to every port that is scanned by nmap (TCP and UDP).
Are there a simple solution to do that?
You could just port-forward (i.e. DNAT) anything incoming from certain ranges to a single port with a generic listener of some form on it.
iptables -t nat -A PREROUTING -s 220.127.116.11/24 -p tcp --dports 0:65535 -j DNAT --to-port 8080
Obviously, whether or not that actually works for your purposes depends on your use-case.