Coder Social home page Coder Social logo

caddy-cloudflare-ip's People

Contributors

fvbommel avatar weidideng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zebracasket

caddy-cloudflare-ip's Issues

invalid IP address: 'cloudflare': ParseAddr("cloudflare"): unable to parse IP

heya, I'm building this with:

FROM caddy:builder AS builder

RUN xcaddy build \
	--with github.com/WeidiDeng/caddy-cloudflare-ip

FROM caddy:latest

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

But am getting this error when launching:

invalid IP address: 'cloudflare': ParseAddr("cloudflare"): unable to parse IP

Thsi is my Caddifile

{
	servers {
		trusted_proxies static 192.168.0.10 cloudflare {
			interval 12h
			timeout 15s
		}
	}
}

Sorry, What is the point of this caddy-cloudflare-ip?

Hello,

Apologies, I have been researching for many hours, but haven't been able to find more information about this.

"trusted_proxies": {
  "source": "cloudflare",
  "interval": "12h",
  "timeout": "15s"
},

I understand under Caddy I can use this section above to fetch a list of trusted proxies. But why do I need caddy-cloudflare-ip when I have already enabled CloudFlare's proxy?

Screenshot 2023-06-05 at 18 03 01

I'm planning to use Caddy with Xray to create the following VPN protocols that utilise Cloudflare CDN.

VLESS+gRPC+TLS
VLESS+WS+TLS
Trojan+gRPC+TLS
VMess+WS+TLS

Many Thanks

support remote_ip filtering

This module is great.

Would it be possible to also add support for Caddy's remote_ip matcher as well?

It would be great if I would use the same up to date list of cloudflare proxy IPs to also reject requests not originating from cloudflare as well.

Thanks.

Missing License

Hi, I would like to use this as a base for Caddy module for Bunny.net CDN provider. Could you add a license to this code?

Example config in the README.md?

After some google searching I have not come across examples of using this plugin properly. After entering the trusted_proxies cloudflare under servers, how are we to implement the checking of cloudflare proxies for something like a reverse_proxy?

{
	http_port 80
	https_port 443

	servers {
		trusted_proxies cloudflare {
			interval 12h
			timeout 15s
		}
	}
}

domain.example.com {
	route {
		reverse_proxy 192.168.1.100:8080
	}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.