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:ngtech1...@gmail.com> ngtech1...@gmail.com

 

From: Ahmad Alzaeem <0xf...@gmail.com> 
Sent: Friday, May 13, 2022 18:34
To: Eliezer Croitoru <ngtech1...@gmail.com>;
squid-users@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-boun...@lists.squid-cache.org
<mailto:squid-users-boun...@lists.squid-cache.org> > on behalf of Eliezer
Croitoru <ngtech1...@gmail.com <mailto:ngtech1...@gmail.com> >
Date: Friday, May 13, 2022 at 8:21 AM
To: squid-users@lists.squid-cache.org
<mailto:squid-users@lists.squid-cache.org>
<squid-users@lists.squid-cache.org
<mailto:squid-users@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:ngtech1...@gmail.com> ngtech1...@gmail.com

 

From: squid-users <squid-users-boun...@lists.squid-cache.org
<mailto:squid-users-boun...@lists.squid-cache.org> > On Behalf Of Ahmad
Alzaeem
Sent: Friday, May 13, 2022 16:13
To: squid-users@lists.squid-cache.org
<mailto:squid-users@lists.squid-cache.org> ; Amos Jeffries
<squ...@treenet.co.nz <mailto:squ...@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 

 

 

 

_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

Reply via email to