I'm trying to block Google Feud on a Firewall/Proxy (Transparent Mode), but it seems a difficult task to accomplish..
I have some configurations for this task:
- ACL rules, blocking the access to the domain
*.googlefeud.com
and blocking the stringgooglefeud
, on every requested URI - Firewall rules, blocking the IP addresses related with the DNS
www.googlefeud.com
, configured directly on themangle
table (although this is not right, to drop packets on this table)
With this configuration, I just wanted to make sure that any packet with this destination, would not reach squid
, at all, as matter of reinforcement.
DNS
$ dig +short www.googlefeud.com
104.27.190.2
104.27.191.2
IPTABLES
-A PREROUTING -d 104.27.190.2 -j DROP
-A PREROUTING -d 104.27.191.2 -j DROP
When using a web browser:
- Non Private Navigation: the request is performed and the page is loaded (you can even play Google Feud normally)
- Private Navigation: the page is not loaded and the web browser reports that it was not possible to attend the request (IPTABLES rules doing their work)
The situation is very similar, If I remove the IPTABLES rules (just letting Squid do its job):
- Non Private Navigation: the request is performed and the page is loaded (you can even play Google Feud normally)
- Private Navigation: the error page from Squid is loaded, informing that it was not possible to attend the request, due to restrictions configured on the Proxy for this content
And here's the page loaded, on Non Private Navigation.
Neither iptables
nor squid
have blocked the requests.
On tcpdump
, seems that the traffic for both IP addresses, is flowing normally too.
192.168.0.12.58340 > 104.27.191.2.http: Flags [S], cksum 0xc989 (correct), seq 3360743156, win 29200, options [mss 1460,sackOK,TS val 5871808 ecr 0,nop,wscale 7], length 0
192.168.0.12.58342 > 104.27.191.2.http: Flags [S], cksum 0xb75a (correct), seq 2588221213, win 29200, options [mss 1460,sackOK,TS val 5871824 ecr 0,nop,wscale 7], length 0
192.168.0.12.58344 > 104.27.191.2.http: Flags [S], cksum 0xbb88 (correct), seq 1534482860, win 29200, options [mss 1460,sackOK,TS val 5871840 ecr 0,nop,wscale 7], length 0
192.168.0.12.58346 > 104.27.191.2.http: Flags [S], cksum 0x1e70 (correct), seq 1830937879, win 29200, options [mss 1460,sackOK,TS val 5871840 ecr 0,nop,wscale 7], length 0
192.168.0.12.58348 > 104.27.191.2.http: Flags [S], cksum 0x0ccc (correct), seq 4159269793, win 29200, options [mss 1460,sackOK,TS val 5871920 ecr 0,nop,wscale 7], length 0
192.168.0.12.56568 > 104.27.190.2.http: Flags [S], cksum 0x8bd9 (correct), seq 1399822194, win 29200, options [mss 1460,sackOK,TS val 5872320 ecr 0,nop,wscale 7], length 0
- How could that be possible, with such rules configured at the
mangle
table (beforenat
andfilter
), blocking these IPs? I have tried to block these addresses at thefilter
table, and it didn't worked. That I why I decided to move the rules tomangle
table.
It seems that there's something tricky regarding the Browser not being in Private Mode.
I observed that googlefeud.com
stores two cookies but I have to admit that I don't have any idea if these cookies are causing any impact in not this situation:
This situation is really weird. I'm really curious about, how this could be possible...
Any help in this challenge, is much appreciated.