[squid-users] squid binding outgoing ip with a username auth

--Ahmad-- ahmed.zaeem at netstream.ps
Sat Sep 24 06:13:20 UTC 2016


hi folks .

i have many ips on same server .
also i  have  basic_ncsa auth type on squid .

say i have 3 ips  and i created 3 users .

the issue i have now is any user can use any outgoing address .

let me explain below :


auth_param basic program /lib/squid/basic_ncsa_auth /etc/squid/squid_user
acl ncsa_users proxy_auth REQUIRED
auth_param basic children 100
http_access allow ncsa_users

###############
http_port 100.160.238.0:17648
http_port 100.160.238.1:48049
http_port 100.160.238.2:26394

#############
acl  ip1myip 100.160.238.0
acl  ip2 myip 100.160.238.1
acl  ip3 myip 100.160.238.2
#############

tcp_outgoing_address 100.160.238.0 ip1
tcp_outgoing_address 100.160.238.1 ip2
tcp_outgoing_address 100.160.238.2 ip3

########################

i created 3 users :

htpasswd -cdb   /etc/squid/squid_user user1 user1
htpasswd -cdb   /etc/squid/squid_user user2 user2
htpasswd -cdb   /etc/squid/squid_user user3 user3

#################



now if user1 connected to 100.160.238.0:17648 it will be able to use it 
also if connected to   100.160.238.1:48049 also will be able .

 and so for 100.160.238.2:26394.


the question is
 how can i let user1 only use  100.160.238.0:17648  and user2 only use  100.160.238.1:48049  and user3 only use  100.160.238.2:26394 ???


i don’t want as an example user1  if he tried   100.160.238.1:48049 to get it working 

thank you 




More information about the squid-users mailing list