A more complete DNS hijack on Linux devices

Posted by cron410 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
A more complete DNS hijack on Linux devices
September 11, 2012 06:09PM
I have modified my /etc/rc.local to create ~20 virtual interfaces on the router for the most common static DNS servers so that piratebox is more compatible with devices set up for static DNS, either from advanced configuration, using a secure DNS option, or leftover configuration from Internet One troubleshooting.

[pastebin.com]

This may not be the cleanest or "best" way to achieve what I was looking for but it works and I have noticed no perfomance hit.
This is on an OpenWRT system running on the TP-Link 703n. Should work for other Linux devices.
I'm open for suggestions!
Re: A more complete DNS hijack on Linux devices
September 12, 2012 06:28PM
Interesting idea! Nice work man!

On OpenWrt using br-lan interface is much more better than eth0.

I would rewrite it to use the interface variable from piratebox.conf and put it into a separate script (with additional init.d parts)

Added on github issue 17



Edited 1 time(s). Last edit at 09/12/2012 06:29PM by Matthias.