moby / vpnkit

A toolkit for embedding VPN capabilities in your application
Apache License 2.0
1.09k stars 182 forks source link

HTTP: add an optional allow list to the proxy #558

Closed djs55 closed 2 years ago

djs55 commented 2 years ago

This allows an admin to set an allow list, such that requests for other domains / CIDRs / IPs will be blocked.

It re-uses the existing HTTP exclude matching functions.

There is still some work needed to distinguish the case None and Some [] in the .json configuration.