Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (1 / 5) |
Uptime: | 46:29:43 |
Calls: | 422 |
Calls today: | 1 |
Files: | 1,024 |
Messages: | 90,336 |
I have a debian machine and my program listen to 7777 such as: 127.0.0.1
I want to send any packet to 127.0.0.1:7777 and it sends my packets to internet. my outgoing interface is eth0.
I want to send any packet to 127.0.0.1:7777 and it sends my packets to internet. my outgoing interface is eth0.
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.
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
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?
I don't want to send one type packet and one destination. any packet
and any destination.When packets are released from 127.0.0.1:7777 ,
this should be sent anywhere.
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.
On Wed, 30 Apr 2025, Mohsen Pahlevanzadeh wrote:
It's not available in the default debian package but have a look at how squid can do this when it's an intercepting proxy. (--with-openssl to configure i think)
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.
It uses the (must be local) nat rules to work out where the packet was originally intended for.
Make the squid host the default route for your traffic.
On the squid host, nat everything to the proxy port
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.
OK, there is an underlying assumption that you are not telling
us.
Why do you want to do this? What is the program at :7777 going
to accomplish differently from connecting sockets to the actual
remote IP addresses?
My program on :7777 is socks5 and ssh tunnel.