Re: [squid-users] is there a way to tell squid to write external ip even that external ip not attached into the machine ?

2022-05-13 Thread Eliezer Croitoru
Hey Ahmad, To be clear, a simple forward proxy that will fake the source IP address is kind of a simple task with these days libraries. I do not know your exact scenario and use case but it's possible to write such a proxy in roughly 200 lines of code in Golang. Take a peek at:

Re: [squid-users] is there a way to tell squid to write external ip even that external ip not attached into the machine ?

2022-05-13 Thread Ahmad Alzaeem
Hello Eliezer I thought it could be done by editing squid src file like to skip inet address lookup . Thanks From: squid-users on behalf of Eliezer Croitoru Date: Friday, May 13, 2022 at 8:21 AM To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] is there a way to tell squid

Re: [squid-users] is there a way to tell squid to write external ip even that external ip not attached into the machine ?

2022-05-13 Thread Eliezer Croitoru
Hey Ahmad, You should use a tproxy port with a PROXY protocol support and acls. With these you can try to push traffic to the network from a local process that will write the right details to squid that will generate a fake source ip. And since you have asked I assume you are not familiar

[squid-users] is there a way to tell squid to write external ip even that external ip not attached into the machine ?

2022-05-13 Thread Ahmad Alzaeem
Hello Guys , We are testing squid with a project such as we need squid to write and proceed with tcp_outgoing address address even its not attached to the machine by ifconfig or ip add ? After some tests we found that squid wont write the external Ip to be pushed out the network card