Possible to listen on all ports?

Hello, and first of all this project looks great and so far the only mitm proxy that has worked for my needs.
Just want to get some of your insights before digging deeper.

I am looking to achieve the following functionality-

Listen on 10k+ ports
Forward all requests to an upstream server (same ports)
Traffic is very moderate 10requests/s~~

Does that sound possible from technical perspective?
Thank you and have an amazing day! :partying_face:

With system redirect you can map all ports you want to mitmproxy/dump/web. mitm is naturally listening only on one port.

Thank you for your answer, but unfortunately I need to pass the connection to the upstream server on the same incoming port, which IP tables would loose upon redirect (