On 4/30/25 4:29 PM, Jonathan Dowland wrote:
On Wed Apr 30, 2025 at 10:19 AM BST, Mohsen Pahlevanzadeh wrote:
I want to send any packet to 127.0.0.1:7777 and it sends my packets to internet. my outgoing interface is eth0.

You can use socat¹ to listen on a port and forward received packets elsewhere. But…

I don't want to use set proxy in firefox and other application, but I want to send any packets to 127.0.0.1:7777 and my program itself send to eth0.

But to what address on the Internet do you wish the packets to go?

Any destination. When packets are released from 127.0.0.1:7777 , No difference to which dst.



[1] https://packages.debian.org/bookworm/socat


Reply via email to