comotion / VSF

Varnish Security Firewall
Other
213 stars 67 forks source link

feature request: whitelist ip address #68

Open iammeken opened 2 years ago

iammeken commented 2 years ago

Hi,

I think adding whitelisted ip address is good for VSF, especially for front-backend setup and dos.vcl.

Please also check: https://puszcza.gnu.org.ua/software/vmod-remoteip/

iammeken commented 2 years ago

For example:

acl admin { "127.0.0.1"; "1.2.3.4"; }

if (std.ip(req.http.X-VSF-Actual-IP, "0.0.0.0") !~ admin && req.url ~

fgsch commented 2 years ago

Hi. I will take a look but feel free to open PRs if you want and have the time.