This commit is contained in:
Fabian Freund
2025-02-16 23:21:44 +01:00
parent ddb0f14059
commit 6368e30479
81 changed files with 20308 additions and 88 deletions
@@ -0,0 +1,10 @@
version: "3"
services:
socks:
build: ./socks
ports:
- "1080:1080"
http:
build: ./http
ports:
- "3128:3128"
@@ -0,0 +1,11 @@
FROM datadog/squid
RUN apt update && apt install -y apache2-utils
RUN htpasswd -b -c /etc/squid/passwords userhttp passwordhttp
ADD squid.conf /etc/squid/squid.conf
RUN chmod o+rw /var/run
USER proxy
@@ -0,0 +1,17 @@
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
#auth_param basic children 5 startup = 5 idle = 1
auth_param basic realm proxy
auth_param basic credentialsttl 1 second
connect_timeout 1 second
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
logformat splunk_recommended_squid %ts.%03tu logformat=splunk_recommended_squid duration=%tr src_ip=%>a src_port=%>p dest_ip=%<a dest_port=%<p user_ident="%[ui" user="%[un" local_time=[%tl] http_method=%rm request_method_from_client=%<rm request_method_to_server=%>rm url="%ru" http_referrer="%{Referer}>h" http_user_agent="%{User-Agent}>h" status=%>Hs vendor_action=%Ss dest_status=%Sh total_time_milliseconds=%<tt http_content_type="%mt" bytes=%st bytes_in=%>st bytes_out=%<st sni=ssl::>sni
logfile_rotate 0
cache_log stdio:/proc/self/fd/1 splunk_recommended_squid
access_log stdio:/proc/self/fd/1 splunk_recommended_squid
cache_store_log stdio:/proc/self/fd/1 splunk_recommended_squid
# Choose the port you want. Below we set it to default 3128.
http_port 3128
@@ -0,0 +1,4 @@
user:$apr1$L24dGKxY$xqj/npbeiBkMZEH7s9Iae/
@@ -0,0 +1,3 @@
FROM vimagick/dante
RUN useradd user && echo user:password | chpasswd