From Whonix

< Dev


Varnish Cheat Sheet[edit]

For Varnish 4.

Show most requested URLs from backend[edit]

varnishtop -i BereqURL

Show specific requested URLs from backend[edit]

varnishlog -q 'BereqURL ~ "^/forum/Themes/default/scripts/"

Show requests for single URL[edit]

varnishlog -q 'ReqURL ~ "^/wiki/Translatetest"'

Show backend responses[edit]

varnishlog -g request -q "RespStatus eq 503"
varnishlog -g request -q "BerespStatus eq 503"

HTTP Purges[edit]

curl -X "PURGE / HTTP/1.0"
or: curl --head -X "PURGE / HTTP/1.0"
check (Resets Age in http header to 0.): curl --head [archive]

Show HTTP requests[edit]

varnishlog -q "ReqMethod eq PURGE"

Show HTTP purges[edit]

varnishlog -q "VCL_return eq purge"

Ban single URL[edit]

varnishadm 'ban req.url ~ "/adrelanos.asc"'
varnishadm 'ban req.url ~ "/wiki/Translatetest"'

Ban all URLs[edit]

varnishadm 'ban req.url ~ "."'

Show how many connections are currently open[edit]

netstat -anp | grep :443 | grep ESTABLISHED | wc -l

wordpress Total Cache varnish setup[edit]

wordpress → Performance (on the side) → General Settings → Reverse Proxy run in shell: varnishlog -q "VCL_return eq purge"
test: wordpress → Performance (at the top) → empty all cache

list of all variables such as client.ip[edit] [archive]

default built-in vcl[edit] [archive]

Show nuked items[edit]

Elements that have been removed from cache due to lack of memory.

varnishstat -1 -f MAIN.n_lru_nuked[edit]


## Patrick: changed from
## -s malloc,256m
## to
## -s malloc,8G

varnish advantages[edit]

Feature Requests[edit]


YSlow Score
Page Details
Fully Loaded Time
Total Page Size


1.8 s
First Input Delay (FID)
251 ms
Lab Data

First Contentful Paint
1.3 s
Speed Index
5.7 s
Time to Interactive
7.5 s
First Meaningful Paint
1.3 s
First CPU Idle
3.5 s
Max Potential First Input Delay
150 ms

text=Jobs in USA
Jobs in USA

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki

Follow: 1024px-Telegram 2019 Logo.svg.png Iconfinder Apple Mail 2697658.png Twitter.png Facebook.png Rss.png Reddit.jpg 200px-Mastodon Logotype (Simple).svg.png

Support: 1024px-Telegram 2019 Logo.svg.png Discourse logo.png Matrix logo.svg.png

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png Monero donate Whonix.png United Federation of Planets 1000px.png

Share: Twitter | Facebook

Want to help create awesome, up-to-date screenshots for the Whonix ™ wiki? Help is most welcome!

https link onion link

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation. Policy of Whonix Website and Whonix Chat and Policy On Nonfreedom Software applies.

Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee [archive] of the Open Invention Network [archive]. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian [archive]. Debian is a registered trademark [archive] owned by Software in the Public Interest, Inc [archive].

Whonix ™ is produced independently from the Tor® [archive] anonymity software and carries no guarantee from The Tor Project [archive] about quality, suitability or anything else.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint, Contact.