On my system, I am sharing my internet which is on eth0 (ethernet) through wlan0 (wifi card).
I am then using mitmproxy to monitor the traffic and look into the ssl packets.
However, mitmproxy only listens on port 8080. So, I have to run all of my traffic through this.
This is on a mac, I dont have direct access to iptabels and I ipfw breaks everything.
I wanted to specifically, fix this issue using netcat.
How would I take all ports and rout them to 8080
and then from 8080 to the regular internet. Much like a proxy.
nc -l (all ports) | nc localhost 8080
if the above is possible, the traffic will never get to the internet.
nc -l 8080 | nc (to the rest of the internet)