Myts2 / redsocks-docker

10 stars 3 forks source link

What to do with proxies which have user/pass authentification? #1

Closed MASSKAgithub closed 2 weeks ago

christianmerges commented 3 weeks ago

push

Myts2 commented 2 weeks ago

Fix in 2bc82c2.

christianmerges commented 2 weeks ago

do i understand right, that the credentials need to be inside a environment variable of the container?

christianmerges commented 2 weeks ago

When I open top inside the container i can see, the redsocks script is running with the parameters "ip port user pass", but on the console it looks like that: 2024-09-12T15:48:59.251815381Z No proxy URL defined. Using default. 2024-09-12T15:48:59.251880239Z Creating redsocks configuration file using proxy 10.26.141.135:3128... 2024-09-12T15:48:59.253791398Z Generated configuration: 2024-09-12T15:48:59.254638471Z base { 2024-09-12T15:48:59.254660101Z log_debug = off; 2024-09-12T15:48:59.254671910Z log_info = on; 2024-09-12T15:48:59.254693720Z log = "stderr"; 2024-09-12T15:48:59.254705459Z daemon = off; 2024-09-12T15:48:59.254716339Z // user = redsocks; 2024-09-12T15:48:59.254726999Z // group = redsocks; 2024-09-12T15:48:59.254737758Z redirector = iptables; 2024-09-12T15:48:59.254755998Z } 2024-09-12T15:48:59.254766707Z 2024-09-12T15:48:59.254777547Z redsocks { 2024-09-12T15:48:59.254788137Z local_ip = 0.0.0.0; 2024-09-12T15:48:59.254798546Z local_port = 12345; 2024-09-12T15:48:59.254809156Z 2024-09-12T15:48:59.254819956Z type = socks5; 2024-09-12T15:48:59.254838035Z ip = 10.26.141.135; 2024-09-12T15:48:59.254849035Z port = 3128; 2024-09-12T15:48:59.254859684Z } 2024-09-12T15:48:59.254871854Z Activating iptables rules... 2024-09-12T15:48:59.269040364Z Setting REDSOCKS firewall rules...done. 2024-09-12T15:48:59.269191159Z Starting redsocks... 2024-09-12T15:48:59.272924760Z 1726156139.272846 notice main.c:167 main(...) redsocks started, conn_max=131072 2024-09-12T15:49:00.566156578Z [2024-09-12 15:49:00] [NOTICE] dnscrypt-proxy 2.0.42 2024-09-12T15:49:00.566322773Z [2024-09-12 15:49:00] [NOTICE] Network connectivity detected 2024-09-12T15:49:00.566376381Z [2024-09-12 15:49:00] [NOTICE] Firefox workaround initialized 2024-09-12T15:49:00.566403910Z [2024-09-12 15:49:00] [NOTICE] Now listening to 127.0.0.1:5533 [UDP] 2024-09-12T15:49:00.566427189Z [2024-09-12 15:49:00] [NOTICE] Now listening to 127.0.0.1:5533 [TCP]