cli bans

Poul-Henning Kamp phk at
Thu Aug 22 21:06:18 UTC 2019

In message <AM6PR01MB4279CC64CEDED17494222A8AA0A50 at>, eric.m.vandenhout at writes:

> 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?


Add the necessary code to your VCL, switch to the new VCL.  This is
an instant operation which does not affect your cache content.

Something like:

	vi/emacs/ed  whatever_your.vcl


	varnishadm vcl.load somename /full/path/to/whatever_your.vcl

	varnishadm vcl.use somename

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-misc mailing list