maximalian

joined 5 months ago
[–] [email protected] -2 points 4 months ago

at what point should one have laughed?

 

I have a server (S-1) with HAProxy and a number of residential proxies (PR-s) as login-passwords-port. There're multiple users who will connect to the internet via S-1.

I want to have HAProxy to forward incomming traffic of the users via a random proxy amoung PR-s with 2 conditions:

  1. only when there's certain, pre-defined keyword in the URL, traffic must be routed via a proxy.
  2. In all other cases, it must go to a requested resource directly as is, without a proxy

How would I implement this?


(1) client -> HaProxy -> if keyword --> sub-proxy (random) -> website

(2) client -> HaProxy -> if no keyword --> website

 

In Squid config, is there any variable - %VAR - that contains the current unique request id or anything similar?

I'll need to pass that into an external script, for instance:

# squi.conf
auth_param basic program %REQUEST_ID(???) /etc/squid/my_auth.py

This may not be an authentication script, this is just an example.

I've searched but haven't found anything about it.

[–] [email protected] 8 points 5 months ago* (last edited 5 months ago) (1 children)

Man, your autism makes the vaccines stronger.