Re: route all traffic to a internal socket
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?
[1] https://packages.debian.org/bookworm/socat
--
Please do not CC me for listmail.
👱🏻 Jonathan Dowland
✎ jmtd@debian.org
🔗 https://jmtd.net
Reply to: