Comments (1)
cat -n proxy.conf
1 :8118 {
2 gzip
3 root /srv/http
4 log stdout
5
6 forwardproxy {
7 hide_ip
8 hide_via
9 }
10 }
11
cat -n caddy.conf
1 :80 {
2 gzip
3 # root /usr/share/caddy
4 root /srv/http
5 log stdout
6 }
7
8 import caddy.conf.d/.conf
If I put the ports on the inside, Caddy will not start.
I have not confirmed if the gzip actually works or not..
Logs look like this:
2020/02/06 12:27:19 192.168.40.190 - - [06/Feb/2020:12:27:19 -0500] "CONNECT / HTTP/1.1" 502 16
2020/02/06 12:27:20 192.168.40.190 - - [06/Feb/2020:12:27:20 -0500] "CONNECT / HTTP/1.1" 200 0
2020/02/06 12:27:20 192.168.40.190 - - [06/Feb/2020:12:27:20 -0500] "CONNECT / HTTP/1.1" 200 0
2020/02/06 12:27:20 [ERROR 502 ] Lookup of syndication.twitter.com failed: lookup syndication.twitter.com: no such host
2020/02/06 12:27:20 192.168.40.190 - - [06/Feb/2020:12:27:20 -0500] "CONNECT / HTTP/1.1" 502 16
2020/02/06 12:27:20 [ERROR 502 ] Lookup of imasdk.googleapis.com failed: lookup imasdk.googleapis.com: no such host
2020/02/06 12:27:20 192.168.40.190 - - [06/Feb/2020:12:27:20 -0500] "CONNECT / HTTP/1.1" 502 16
2020/02/06 12:27:21 [ERROR 502 ] Lookup of static.scroll.com failed: lookup static.scroll.com: no such host
2020/02/06 12:27:21 192.168.40.190 - - [06/Feb/2020:12:27:21 -0500] "CONNECT / HTTP/1.1" 502 16
2020/02/06 12:27:21 [ERROR 502 ] Lookup of cdn.tinypass.com failed: lookup cdn.tinypass.com: no such host
2020/02/06 12:27:21 192.168.40.190 - - [06/Feb/2020:12:27:21 -0500] "CONNECT / HTTP/1.1" 502 16
2020/02/06 12:27:21 [ERROR 403 ] No allowed IP addresses for www.npttech.com
2020/02/06 12:27:21 192.168.40.190 - - [06/Feb/2020:12:27:21 -0500] "CONNECT / HTTP/1.1" 403 14
2020/02/06 12:27:21 [ERROR 502 ] Lookup of c.amazon-adsystem.com failed: lookup c.amazon-adsystem.com: no such host
2020/02/06 12:27:21 192.168.40.190 - - [06/Feb/2020:12:27:21 -0500] "CONNECT / HTTP/1.1" 502 16
2020/02/06 12:27:22 [ERROR 502 ] Lookup of z-na.amazon-adsystem.com failed: lookup z-na.amazon-adsystem.com: no such host
2020/02/06 12:27:22 192.168.40.190 - - [06/Feb/2020:12:27:22 -0500] "CONNECT / HTTP/1.1" 502 16
caddy -plugins | grep forward
http.forwardproxy
caddy -version
v1.0.4
The 502's are dns failures; adblocking..
HTH
from forwardproxy.
Related Issues (20)
- Should caddy2 be default branch? HOT 1
- Rationale of :443 in ":443, example.com" HOT 1
- Allow use of wildcard outside of `*.` prefix HOT 5
- Leverage caddy-l4 HOT 7
- Role of probe_resistance HOT 4
- [Feature request] Add custom DNS resolver
- Caddy shows "ResponseWriter doesn't implement http.Flusher" when enable access log and connect to a proxy server using HTTP/2 HOT 4
- Would using tokio improve performance? HOT 2
- Putty/WinScp HTTP Proxy
- insecure schemes are only allowed to localhost upstreams HOT 2
- Can I us this to add custom request headers? HOT 1
- Network Interface Feature example: fe0 in the dialcontext to be added. HOT 1
- xcaddy build --with github.com/caddyserver/forwardproxy failed with [FATAL] exit status 1 HOT 2
- Caddy2 support not only 443 port HOT 6
- The caddy2 version bahaves unexpectly. HOT 5
- where the "binaries" at? HOT 1
- "308 Permanent Redirect" HOT 2
- Download not available HOT 2
- Broken link in documentation pointing at blog article HOT 1
- Any change to support Cadddy log function ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forwardproxy.