1. Caddy version (caddy version
):
v2.2.3 h1:xxMaF/Nb3B5VhXkQREvjGUdfDgseMmc5IyhUktYO7gM=
caddy v2 with forward proxy plugin branch caddy2 9fe1292 (not offically yet)
2. How I run Caddy:
caddy start OR sudo systemctl start caddy
a. System environment:
Unbuntu server 20.04 on AWS and Google Cloud
b. Command:
caddy start OR sudo systemctl start caddy
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
:443, hkgcp.geoml.top
route {
forward_proxy {
basic_auth user1 passwd
ports 80 443
hide_ip
hide_via
probe_resistance caddyserver.com
}
@NoAccess {
not path /secret/ /baobei/*
}
file_server @NoAccess browse {
root /var/www/html/opendocs
}
}
3. The problem I’m having:
www.google.com is blocked in China mainland. I would like to reach www.google.com by using forward proxy. I tried many times, but caddy 2+forward proxy (branch caddy2) did not work. File_server works as expected.
However I successfully loaded www.google.com with caddy V1+forward proxy in Google Chrome. but failed with Firefox.
4. Error messages and/or full log output:
caddy does not have error in command line.
xcaddy compile has no error information.
Google Chrome to load www.google.com:
This site can’t be reachedThe webpage at https://www.google.com.hk/ might be temporarily down or it may have moved permanently to a new web address.
ERR_TUNNEL_CONNECTION_FAILED
5. What I already tried:
Compiled a few times with Xcaddy, and a few installation on AWS, Google cloud. Ubbuntu and Debian.
Read docs about Caddyfile and try to configure the correct Caddyfile.
Run caddy by caddy start, sudo systemctl start caddy.
Caddy v2 + forward proxy(branch caddy2) did not work.
Tried caddy V1+ forward Proxy, it worked, I can load www.google.com and watch youtube with Chrome. Firefox, I failed.