Making a forward proxy with v2

1. Caddy version (caddy version): v2.1.1

2. How I run Caddy:

Via Ubuntu terminal + service

a. System environment:

Ubuntu 20

b. Command:

caddy run

d. My complete Caddyfile or JSON config:

This was my v1 caddyfile. { 
log /var/log/caddy_access.log
errors /var/log/caddy_error.log
errors {
  403 /var/www/403.html 
forwardproxy {
  basic auth bruh 1234
  response_timeout 30
  dial_timeout 30
  acl { 
    allowfile /var/www/allowed.txt
    denyfile /var/www/blocked.txt

3. The problem I’m having:

I need to use the http.forwardproxy plugin but for Caddy v2. If i cant then i need to find a way to use Caddy v1

5. What I already tried:

Ive tried using other services and they do not work like how it did with v1

The forwardproxy plugin for v2 isn’t ready yet, but it’s a work in progress.

There’s the v2 branch in git here (not sure if it compiles yet):

You can follow this issue for progress:

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.