Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: ngtech1ltd@xxxxxxxxx

 

From: Ahmad Alzaeem <0xff1f@xxxxxxxxx>
Sent: Friday, May 13, 2022 18:34
To: Eliezer Croitoru <ngtech1ltd@xxxxxxxxx>; squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: 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@xxxxxxxxxxxxxxxxxxxxx> on behalf of Eliezer Croitoru <ngtech1ltd@xxxxxxxxx>
Date: Friday, May 13, 2022 at 8:21 AM
To: squid-users@xxxxxxxxxxxxxxxxxxxxx <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: 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: ngtech1ltd@xxxxxxxxx

 

From: squid-users <squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Ahmad Alzaeem
Sent: Friday, May 13, 2022 16:13
To: squid-users@xxxxxxxxxxxxxxxxxxxxx; Amos Jeffries <squid3@xxxxxxxxxxxxx>
Subject: 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@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux