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?
Information Security Stack Exchange is a question and answer site for information security professionals. It only takes a minute to sign up.Sign up to join this community
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.