Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

DERP Rules Generator

A tiny DERP proxy rules generator service. All python stdlib, no external dependencies.

The service exposes a web API, which downloads DERP map and converts it to rule provider format on demand.

Usage

Simply run:

PORT=8000 python main.py

Or use docker to compile (using nuitka) and deploy:

docker build -t derp-rules .
docker run -p 8000:8000 derp-rules

To request the service:

curl localhost:8000

To add as a rule provider:

rule-providers:
TailscaleDerp:
type: httpbehavior: classicalurl: http://localhost:8000path: ./rule_providers/TailscaleDerp.yamlinterval: 86400

References

vernesong/OpenClash#4434 (comment)

https://www.reddit.com/r/Tailscale/comments/1emtvll/comment/lwratuc/

About

A tiny DERP rules generator.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages