diff --git a/.gitignore b/.gitignore index 791f7301dfcef7281c07b144ef5d8b1c114912f0..7216b1fca4adfeef47200b623bf5a516f0faadef 100644 --- a/.gitignore +++ b/.gitignore @@ -192,4 +192,5 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk -# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,intellij,windows \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,intellij,windows +vpn/config \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index fec8224e657cc1e5e3379f49e12c8e4203315aa9..82090a96e859767f12d5b6564104eef83c2b8df8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,4 +7,6 @@ include: - caddy/caddy.docker-compose.yml - ftp/ftp.docker-compose.yml - nginx/nginx.docker-compose.yml - - apache/apache.docker-compose.yml \ No newline at end of file + - apache/apache.docker-compose.yml + - httpforwardproxy/httpforwardproxy.docker-compose.yml + - vpn/vpn.docker-compose.yml \ No newline at end of file diff --git a/httpforwardproxy/.htpasswd b/httpforwardproxy/.htpasswd new file mode 100644 index 0000000000000000000000000000000000000000..5acfe8dd44c3abb22db4194d82269e1597103815 --- /dev/null +++ b/httpforwardproxy/.htpasswd @@ -0,0 +1 @@ +viet:$apr1$z385Ast0$zCDKRE.F.ozWRDft0wElb. diff --git a/httpforwardproxy/Dockerfile b/httpforwardproxy/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..7c2def0afb72d7a96481b4626cd52eddd87b3ef3 --- /dev/null +++ b/httpforwardproxy/Dockerfile @@ -0,0 +1,4 @@ +FROM nginx:stable-alpine + +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY .htpasswd /etc/nginx/.htpasswd \ No newline at end of file diff --git a/httpforwardproxy/httpforwardproxy.docker-compose.yml b/httpforwardproxy/httpforwardproxy.docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..b48aeb29e3b875af2409beb38d7edf837e7977cb --- /dev/null +++ b/httpforwardproxy/httpforwardproxy.docker-compose.yml @@ -0,0 +1,7 @@ +services: + httpforwardproxy: + build: . + ports: + - 8888:8888 + networks: + - intranet \ No newline at end of file diff --git a/httpforwardproxy/nginx.conf b/httpforwardproxy/nginx.conf new file mode 100644 index 0000000000000000000000000000000000000000..276fdf5afa5a8d2710b6c1b146a610fb8b16fa20 --- /dev/null +++ b/httpforwardproxy/nginx.conf @@ -0,0 +1,12 @@ +server { + listen 8888; + + location / { + resolver 127.0.0.11; + + proxy_pass http://$http_host$uri$is_args$args; + + auth_basic "Intranet"; + auth_basic_user_file /etc/nginx/.htpasswd; + } +} \ No newline at end of file diff --git a/vpn/vpn.docker-compose.yml b/vpn/vpn.docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..7ce120a21a8359f73212c5bd0fb8b90611129e61 --- /dev/null +++ b/vpn/vpn.docker-compose.yml @@ -0,0 +1,25 @@ +services: + vpn: + image: linuxserver/wireguard + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Berlin + - SERVERURL=localhost #optional + - SERVERPORT=51820 #optional + - PEERS=1 #optional + - PEERDNS=auto #optional + - INTERNAL_SUBNET=10.13.13.0 #optional + volumes: + - ./config:/config + #- ./modules:/lib/modules + ports: + - 51820:51820/udp + sysctls: + - net.ipv4.conf.all.src_valid_mark=1 + restart: unless-stopped + networks: + - intranet \ No newline at end of file