This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
squid [2009/08/12 20:39] k2patel created |
squid [2020/08/10 02:35] (current) |
||
---|---|---|---|
Line 20: | Line 20: | ||
Define authentication method for user. | Define authentication method for user. | ||
<code bash> | <code bash> | ||
- | acl thevmc proxy_auth thevmc | + | acl ketan proxy_auth ketan |
</bash> | </bash> | ||
Allow user to access proxy. | Allow user to access proxy. | ||
<code bash> | <code bash> | ||
- | http_access allow thevmc | + | http_access allow ketan |
+ | </code> | ||
+ | ==== Define Outgoing IP based on Username ==== | ||
+ | In order to define IP based on authenticated user.\\ | ||
+ | Add following line. (considering you all of the [[squid#password_based_authentication|above]] already exists) | ||
+ | <code bash> | ||
+ | tcp_outgoing_address 98.113.222.164 ketan | ||
</code> | </code> | ||