Re: Question: forward username/password through to socks5 proxy
Fabian Keil <[email protected]> Wed, 24 Aug 2022 12:27:39 +0200
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote on 2022-08-11 at 18:38:30: > I’m trying to utilize privoxy and tor together, using tor's stream > isolation to get a new circuit per session by passing different > credentials per session. I have the recommended config in there: > > forward-socks5t / 127.0.0.1:9050 . > > And I'm trying to call through privoxy with: > > curl -s -x http://$USER:$PASS@localhost:8118 https://check.torproject.org > > But it looks like the username and password aren't forwarded along to > tor. Is this possible? That's currently not supported and I also don't consider passing HTTP passwords to the socks proxy a good idea. > I can't put the username/password it the privoxy config because it > changes dynamically per session/app/etc. What I do to use different Tor circuits for different applications is to have Tor listen on multiple ports and let Privoxy chose the forwarding settings based on the User-Agent or other headers. Example sections from one of my action files: {+client-header-tagger{user-agent}\ +client-header-tagger{client-ip-address}\ +client-header-tagger{http-method} \ +client-header-tagger{range-requests} \ +client-header-tagger{referer}\ +client-header-tagger{content-type}\ } / {+forward-override{forward-socks5t 127.0.1.2:9048 .}} TAG:^User-Agent: Liferea Of course using multiple Tor listening ports is no longer necessary nowadays as one can also change the Tor sessions by specifying socks user names and passwords. Fabian _______________________________________________ Privoxy-users mailing list [email protected] https://lists.privoxy.org/mailman/listinfo/privoxy-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAmMF/RwACgkQaRgikYui NxxbCQ//S1hiToJTaRpZNXVRiucJiqnf+wO83dG46lTSXQ///xwFRdyMxk9YEJSl mZPS9hzFpsddhrHTa8zGB/awdU0XCG4HaHeGWeieOW2/51jqpOjNOIEJMGYYTsl3 PIOOdViR2bE+lSv8B7mXJkwtKkS3CFQl6XZw2LFzyFEqUMsW8wJ1wtsgtEQ7o0kF Hh4GlmLbG5lHy+xhPiWOIQDa/DyxeFc+KgXe0ZywpRnTo40wwXzsXPe2QpuYHTHo yMWxzLbLeROnuRRHEGfxCGsmYzqxXeI6wR4ZUyfdkcnnsTAYFxIV9c3AJsiWdywo Q+IQVeBlwt/OJaAL0eEkFOeRhVDYR4KjyYuvnY7efn8hoekvwHgkHIgObGLfiWIc vPdvbcOolhJrhUEzqXuWaKu5CtNkryqz8qSR/E+2ZMOieK5QC3suOo+637Yri2aG eB0loyXrGk5dOuUlbOZiSbgbL+kTrER3hqNmQ/an+ekXUlIZNtsQN4QHhnZ5Q5OE /D67ko1gIpX5z3+cHlBYCrzf7hCeVISrySp4EBlj3TG/F4zZAa/WQB8JmC0cyrHA Ykd1yeLtyeJhLzguQqOilyRVV0PBBEBOtVtdLcjQBtVHRlRJB20678cJMyYSW9gI JsXwQbUuX+IDjl/tj/JxeeTRpsyAGmUIcjycF4BKezcFxvCLGEE= =uSV3 -----END PGP SIGNATURE-----