<span class="gmail_quote"><br></span><span>Hi List, <br><br>I want to bind an ip address to a username with squid by using squid password file. <br><br>I am using ncsa_auth programme. Below are line that I have added to squid.conf
file. <br><br>auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
<br>auth_param basic children 5<br>auth_param basic realm Squid proxy-caching web server<br>auth_param basic credentialsttl 2 hours<br>auth_param basic casesensitive off<br><br>acl ncsa_users proxy_auth REQUIRED<br>http_access allow ncsa_users
<br><br>We are currently browsing internet with usernames and
passwords. But the problem is a user can access internet from all the
workstation with his username and password. I do not need it. I only
want a user to access internet from his machine. <br><br>Solution to that is binding an ip address to an username. Then, A user can access internet from that particular ip. <br><br>I searche a lot from the internet. I found some info. I tried a lot. But I still have not been able to solve this issue.
<br><br><br>Some info I found from the Internet says perl script can do it. <br><br>pls see below ulrs for it. <br><br><a href="http://iits.uap.edu.ph/%7Ejpira/footnotes/squid.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://iits.uap.edu.ph/~jpira/footnotes/squid.html</a><br><br><a href="http://www.visolve.com/squid/squid30/externalsupport.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.visolve.com/squid/squid30/externalsupport.php
</a><br><br>Pls note that I am not a programmer. So I do not know any perl nor do I know any python stuff.<br><br>So I do not want to go with above urls. <br><br>But, I found an easy method from squid list. Pls see below URLS .
<br><br><br><a href="http://www.squid-cache.org/mail-archive/squid-users/200208/0033.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.squid-cache.org/mail-archive/squid-users/200208/0033.html</a><br><br><a href="http://www.squid-cache.org/mail-archive/squid-users/200208/0029.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.squid-cache.org/mail-archive/squid-users/200208/0029.html
</a><br><br>These above URLS are fine for me. The above URLS say,<br><br><span style="font-weight: bold;">put the IP add in squid passwd<br><span style="font-weight: bold;"><br></span></span>I did it. Pls see below for my squid_passwd file.
<br><br>[root@worldnet ~]# cat /etc/squid/squid_passwd<br>indunil:TeiAQ3uqXDQNg:<a href="http://192.168.101.25/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.101.25</a><br>www:Oi4THedCcN0nQ
<br>web:qsTaT6v2loN5g<br><br>It has bound user <span style="font-weight: bold;">
indunil</span> to ip address <span style="font-weight: bold;"><a href="http://192.168.101.25/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.101.25</a></span> . <br><br>But user <span style="font-weight: bold;">
indunil</span> still can access internet from any ip . Why is that? Where did I go wrong?
<br><br> I think that it is an easy task. <br><br>Pls help me to solve this issue. It is urgent. </span><br clear="all"><br>-- <br>Thank you<br><span class="sg">Indunil Jayasooriya<br>
</span><br clear="all"><br><br>