I got an external Debian server. The problem is that my university campus doesn't allow connections to go outside when the port is different than TCP port 22, 80, 443, or UDP port 123. I tested them manually. On my Debian server I would like to listen to all my UDP and TCP ports so I can clearly figure out which TCP and UDP ports my university let through their firewall. Nmap is wonderful on the client side to test that, but what should I do on the server side?
tcpdump usually comes as standard on Linux distros. It will log all packets visible at the server note that
Then just run nmap from your client.
I don't have a good way to test this right now, but...
I believe you can use
That should redirect all incoming ports to 1024. You can then start a server on 1024.