Top Nav

Insert Varnish Cache With NAT Rule

Here’s a simple nat rule for iptables that will route incoming web traffic to your varnish cache. This allows you to implement varnish without reconfiguring apache. In the varnish config, set the backing do be 127.0.0.1:80.

Here’s a different rule that also seems to work:

Email
Print