qwj / python-proxy

HTTP/HTTP2/HTTP3/Socks4/Socks5/Shadowsocks/ShadowsocksR/SSH/Redirect/Pf TCP/UDP asynchronous tunnel proxy implemented in Python 3 asyncio.
MIT License
1.99k stars 333 forks source link

Define port for outgoing packets #165

Open dhruvrauthan opened 1 year ago

dhruvrauthan commented 1 year ago

Hi,

When I run a simple sudo pproxy it starts listening on port 8080 for incoming packets. However, I want to send the packets from the proxy via a particular local port on my machine, for example port 3000. Is this possible with the current version? If yes, how? The flow would be like the packet reaches 8080 and then goes out through 3000 to the intended destination

Thanks!