Skip to main content

DNS Whac-A-Mole

 

When configuring and operating a LAN the DNS variants of DoT (DNS over TLS) and DoH (DNS over HTTPS) are a pain as they bypass the normal DNS policies and usage agreements.

So the solution is to Whack them. The result is the fail back to normal DNS and policy implementations.

The first wack is to constrain DoT. Here we go:

/sbin/iptables -i br0 -I FORWARD 1 -p tcp --destination-port 853 -j DROP

The next is DoH. Its more complex. DoH requires at least one valid DNS call and therein lies the path to mess with it. On DNSMASQ you can signal via the canary domains by doing this:

address=/cloudflare-dns.com/
address=/dns.google/

You can also apply a custom hosts file like this:

0.0.0.0 dns.google
0.0.0.0 one.one.one.one
0.0.0.0 dns.umbrella.com
0.0.0.0 rec1pubns1.ultradns.net
0.0.0.0 dns9.quad9.net
0.0.0.0 dns.google.com

And to really miss with it you can:

/sbin/iptables -i br0 -I FORWARD 1 -d 8.8.8.8,8.8.4.4,1.1.1.1,1.0.0.1,9.9.9.9,149.112.112.112 -p tcp --destination-port 443 -j DROP
This article was originally published over in LinkedIn: DNS Whac-A-Mole

Comments

Popular posts from this blog

LDWin: Link Discovery for Windows

LDWin supports the following methods of link discovery: CDP - Cisco Discovery Protocol LLDP - Link Layer Discovery Protocol Download LDWin from here.

easywall - Web interface for easy use of the IPTables firewall on Linux systems written in Python3.

Firewalls are becoming increasingly important in today’s world. Hackers and automated scripts are constantly trying to invade your system and use it for Bitcoin mining, botnets or other things. To prevent these attacks, you can use a firewall on your system. IPTables is the strongest firewall in Linux because it can filter packets in the kernel before they reach the application. Using IPTables is not very easy for Linux beginners. We have created easywall - the simple IPTables web interface . The focus of the software is on easy installation and use. Access this neat software over on github: easywall

STG (SNMP Traffic Grapher)

This freeware utility allows monitoring of supporting SNMPv1 and SNMPv2c devices including Cisco. Intended as fast aid for network administrators who need prompt access to current information about state of network equipment. Access STG here (original site) or alternatively here .