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

Eliezer Croitoru ngtech1ltd at gmail.com
Fri May 13 16:40:31 UTC 2022


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:

https://github.com/LiamHaworth/go-tproxy

 

It's a nice library for tproxy alone.

Squid is great but if you will touch any source code it's possible that
you'd better write your own customized proxy.

 

Good Luck,

Eliezer

 

----

Eliezer Croitoru

NgTech, Tech Support

Mobile: +972-5-28704261

Email:  <mailto:ngtech1ltd at gmail.com> ngtech1ltd at gmail.com

 

From: Ahmad Alzaeem <0xff1f at gmail.com> 
Sent: Friday, May 13, 2022 18:34
To: Eliezer Croitoru <ngtech1ltd at gmail.com>;
squid-users at lists.squid-cache.org
Subject: Re: [squid-users] is there a way to tell squid to write external ip
even that external ip not attached into the machine ?

 

Hello Eliezer

I thought it could be done by editing squid src file  like to skip inet
address lookup .

 

Thanks 

 

 

From: squid-users <squid-users-bounces at lists.squid-cache.org
<mailto:squid-users-bounces at lists.squid-cache.org> > on behalf of Eliezer
Croitoru <ngtech1ltd at gmail.com <mailto:ngtech1ltd at gmail.com> >
Date: Friday, May 13, 2022 at 8:21 AM
To: squid-users at lists.squid-cache.org
<mailto:squid-users at lists.squid-cache.org>
<squid-users at lists.squid-cache.org
<mailto:squid-users at lists.squid-cache.org> >
Subject: Re: [squid-users] is there a way to tell squid to write external ip
even that external ip not attached into the machine ?

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 enough with this kind
of setup so it's crucial you will understand what are doing
before trying and testing it since at might not work as you expect.

 

All The Bests,

Eliezer

 

----

Eliezer Croitoru

NgTech, Tech Support

Mobile: +972-5-28704261

Email:  <mailto:ngtech1ltd at gmail.com> ngtech1ltd at gmail.com

 

From: squid-users <squid-users-bounces at lists.squid-cache.org
<mailto:squid-users-bounces at lists.squid-cache.org> > On Behalf Of Ahmad
Alzaeem
Sent: Friday, May 13, 2022 16:13
To: squid-users at lists.squid-cache.org
<mailto:squid-users at lists.squid-cache.org> ; Amos Jeffries
<squid3 at treenet.co.nz <mailto:squid3 at treenet.co.nz> >
Subject: [squid-users] is there a way to tell squid to write external ip
even that external ip not attached into the machine ?

 

 

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 interface if the ip address is not added to the machine
.

 

Is there anyway to bypass this checkout and let squid ignore checking the
external ips if attached or not attached ?

Not sure if from config or may be editing src files .

 

 

Many Thanks 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20220513/19a5fafe/attachment.htm>


More information about the squid-users mailing list