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 192.168.1.0/24 --destination-port 443 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p udp -s 192.168.1.0/24 --destination-port 80 -j REJECT --reject-with icmp-port-unreachable
iptables -A INPUT -p udp -s 192.168.1.0/24 --destination-port 443 -j REJECT --reject-with icmp-port-unreachable
In this case my home network is 192.168.1.0 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.
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”
I have bought 3 new Micro SD cards from my favorite shop on eBay and my plan is to use them predominantly with Raspberry Pi 2.
Samsung Evo+ 80MB/s 32GB for $9.69
Sandisk Ultra 48MB/s 16GB for $4.79
Toshiba 40MB/s 16GB for $4.79 Continue reading “Testing 3 MicroSD cards with Raspberry Pi 2”
After switching ISP providers I have replaced my trusty TP-LINK 1043ND running OpenWrt with Cisco EPC3928S which also has Gigabit Ethernet ports and 300Mbit WiFi I noticed problems with my RTL8152 based USB->Ethernet adapter which I was using with my gk802 device. Continue reading “Force 100Mbit ethernet speed on RTL-8152 USB ethernet adapter”