Speed-up page loading time with pi-hole

Even though you are using pi-hole to stop showing ads which should speed-up page loading since it does not need to featch unwanted ad material.
But sometimes slow down your page loading, since many ads are delivered via HTTPS port 443.

Pi-hole only knows about domain being requested and it is blocking the ad domains on DNS level. It is not aware about the specific protocols used for ad delivery. Slowdown can occur waiting for HTTPS request to timeout to unreachable domain because you have blocked it on DNS level.

To speed things up you could use these three simple iptables rules:

iptables -A INPUT -p tcp -s --destination-port 443 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p udp -s --destination-port 80 -j REJECT --reject-with icmp-port-unreachable
iptables -A INPUT -p udp -s --destination-port 443 -j REJECT --reject-with icmp-port-unreachable

In this case my home network is and all request coming from your local clients to pihole on ports 80,443 are rejected which should hopefully result in speedy page loading.

Save the rules in your local boot script or use iptables-save.

Pine64 2GB DDR3 SDRAM, 10/100/1000 MB Ethernet port unpacking and quick review

Even though in my mid May post I said I will not go into future endeavors with low cost devices this one I have ordered long time ago (April 2016) and it was delayed with shipping.

Pine64 looked interesting and promising since they raised $1.7M on Kickstarter offered 3 different variants for affordable price.

Allwinner is awful with their open source support so you will not be using this device for your next media center since Kodi will not work, but since it has 2GB RAM and 1Gb Ethernet it seems perfect fit for a small home server. Continue reading “Pine64 2GB DDR3 SDRAM, 10/100/1000 MB Ethernet port unpacking and quick review”