Hi,

Just a smal question. Is it possible to temporarily send  a specific http  
errorcode back (e.g. http 429) to an  ip from varnish using the commandline 
client (or by any other means) without restarting varnish?
Consider this scenario:
A varnish cluster is running nicely. Among other things it also gives access to 
a set of developer api’s.
Not all programmers are equally skilled so sometimes it happens that a 
programmer creates a loop that is flooding the platform.
At this moment I use fail2ban to just block it in iptables and unblock it after 
10 minutes.
However I would prefer instead of blocking it that I can just reroute the 
requests of this ip temporarily to an errorpage which returns http 429 (which 
as statuscode also should be returned bij Varnish)
Important with this is than that no varnish restarts are required.

Any ideas?

Met vriendelijke groet/Kind Regards
Eric van den Hout

Devops Engineer / Technical administrator
Cluster Klant & Content  / AAB

[cid:[email protected]]

Stationsstraat 115
3811 MH  Amersfoort
Mofo: +31 6 83569993
Email: [email protected]<mailto:[email protected]>
         [email protected]<mailto:[email protected]>

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to