Search squid archive

Re: Reconfiguring Squid every few seconds

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

 



To give some perspective you can see the next example:

https://github.com/elico/mwan-nft-lb-example

 

but you need to learn first how network namespaces works in linux.

You will probably need to run squid in it’s own namespace which will be managed from the “main” or “root” namespace.

It will probably be similar to a management interface and virtual routers on products like Palo Alto.

 

Eliezer

 

----

Eliezer Croitoru

NgTech, Tech Support

Mobile: +972-5-28704261

Email: ngtech1ltd@xxxxxxxxx

 

From: Eliezer Croitoru <ngtech1ltd@xxxxxxxxx>
Sent: Sunday, March 20, 2022 00:20
To: 'Squid Users' <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Reconfiguring Squid every few seconds

 

Hey Roee,

 

The best solution for you case is to use a network namespace Router between the squid instance to the actual modem interface.

You can attach each modem to a network namespace and leave squid to do it’s thing with a static IP address.

 

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 roee klinger
Sent: Saturday, March 19, 2022 02:48
To: Squid Users <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Reconfiguring Squid every few seconds

 

Hello,

 

I have a server with multiple 4G modems with Squid running on it, the 4G modems get an internal private IP that is dynamic (unfortunately this can't be changed),

 

I set up Squid to use the interfaces as follows:

 

The configuration works well and everything works great, however, whenever I restart one of the modems (I have many, and I restart them a lot), I get a new internal private IP, and I need to reconfigure Squid, this means that I will be running "squid -k reconfigure" multiple times a minute.

 

Will this have a bad effect on Squid and traffic (I understand this does not cause Squid to restart)? What is my alternative?

 

Thanks,

Roee

_______________________________________________
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