Is there a way to make netcat receive UDP packets from any ip:port? I don't want it to bind to a specific host as the first packet comes.
I can consider alternatives, but they have to be bash friendly (allow piping).
|
|
If you you are doing this on Linux then you could set up an iptables rule using the REDIR target. Just redirect all UDP traffic to a single port and then listen on that port with netcat. |
|||
|
|
|
What you are trying to achieve is not possible without root permission. |
|||||||
|
|
With some
|
|||
|
|