Article 50D2K Squid Proxy: How to configure user password authentication for specific parts of subnet

Squid Proxy: How to configure user password authentication for specific parts of subnet

by
malevolence
from LinuxQuestions.org on (#50D2K)
Hi guys,

I can't figure it out, and Google isn't my best friend at the moment. So I hope someone here can help me out.

I have installed Squid proxy on a Linux server running Ubuntu 18.04 and now I have set up 255 different proxies (one subnet to be clear).

I want to set up user:password authentication, which I get. But in examples I found on the internet, this will make a user:pass combination work on all the addresses in the subnet.

I need to figure a way out to
Option 1: Set up a user:pass combination that will work on address x.x.0.x to x.x.100.x but no on all the other addresses in the subnet. A second user:pass combination working for x.x.101.x to x.x.151.x for example.

Option 2: Make 255 unige port and user:pass combinations so that I get 255 unique different user:pass proxies.

I want to let a user use a part of the subnet, but if it applies to whole the subnet. I isn't exactly hard to figure out the other addresses from the subnet so he would be able to use them all.

Sorry for my english, I tried my best, and hope this makes some sense.

Thanks in advance!latest?d=yIl2AUoC8zA latest?i=icKoQiLA1Z8:8tOdBhJxWAM:F7zBnMy latest?i=icKoQiLA1Z8:8tOdBhJxWAM:V_sGLiP latest?d=qj6IDK7rITs latest?i=icKoQiLA1Z8:8tOdBhJxWAM:gIN9vFwicKoQiLA1Z8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments