Stop DNS Tunneling


Just got informed that IPfire can be misused to allow DNS tunneling. This may be already known, but can this prevented somehow?

A know person just showed this to me in my home LAN with IPFire. I already locked down the LAN for DNS spoofing by redirecting each DNS request to IPFire but obviously this does not prevent DNS tunneling.

Ok, by using this tunnel, the performance is somehow limited but anyway you could send and receive information to and from the WAN. This technic is used by messenger Signal for example to bypass local authorities’ blockage.

So is there anything can prevent tunneling. FWIW the person who did it in my private LAN just used his Android smartphone.



no this cannot really be prevented, but you can limit the number of connections/packets to limit it and make it at last somewhat unusable.

It will still be enough for Signal I would assume, but not enough for file sharing, etc.

We use it in the captive portal where DNS has to be open but we limit it:;a=blob;f=src/misc-progs/captivectrl.c;h=56dd78db0542e48c2df7b880904485430b51a7a7;hb=HEAD#l145

1 Like