Closed evulhotdog closed 3 months ago
My understanding of g3proxy right now is that as soon as you apply a user group to the
server
block, it requires all users to authenticate using any user group allowed in that block, regardless of source IP.
You can enable the anonymous_user
in user_group config and set it to only allow ingress network 127.0.0.0/8. But it won't work for Java http clients as the response for unauthorized requests from other networks will be 403 instead of 407.
Is there a way to do the same in g3proxy, to require authentication from everywhere, except from localhost?
You can add another unauthorized server along with the previous authorized one, by listening to different socket address (127.0.0.1:3128 and 0.0.0.0:3128). Ingress network ACL can be set at server level.
While brainstorming (before you responded) I tried the additional server block and that worked, however, the anonymous user is cleaner and works exactly as intended.
Thanks again for being incredibly responsive in this repo. I owe you a beer!
with c52c3732dd6ecb18aa40c26386245333a0793160 now g3proxy will return 407 when denied by anonymous user's ingress network ACL
Hey! I have been using Squid for a long time, and I came across your project and was super excited. Thanks for all the time and effort you and the team have put into this!
I was hoping you could point me in the right direction. Today in Squid, I can use the code block, and allow all traffic from localhost, without authentication like so:
Problem: I have some applications that do not support using authentication when defining the http proxy, only host and port. For this use-case, I create a tunnel using
proxytunnel
, to bind a port locally, and then forward through that, without auth, to localhost on the Squid host, which allows me to solve the problem.This double tunneling is obviously not great for certain scenarios, but it does allow me to do what I need to do.
My understanding of g3proxy right now is that as soon as you apply a user group to the
server
block, it requires all users to authenticate using any user group allowed in that block, regardless of source IP.Is there a way to do the same in g3proxy, to require authentication from everywhere, except from localhost?