home adblock router HOWTO

requirements

architecture

ip description
192.168.0.1 strange router
192.168.0.3 router (eth0)
192.168.1.3 router (eth1)
192.168.1.10
to
192.168.1.99
clients with static address
192.168.1.100
to
192.168.1.199
clients with dynamic address
local domain: nett

basics

file: /etc/network/interfaces


file: /etc/sysctl.d/network.conf


reboot the system

sshd

we don't want elliptic curve keys


from the file /etc/ssh/sshd_config remove the line


on a root shell execute

firewall

file: /root/firewall.sh


on a shell execute

dns

edit your /etc/hosts


on a shell execute


file: /etc/dnsmasq.conf


file: /etc/resolv.conf


execute on a shell

dhcp

execute on a shell


file: /etc/dhcp/dhcpd.conf


execute on a shell

apache (for adblocker)

execute on a shell


file: /etc/apache2/sites-available/default


execute on a shell

adblocker

file: /root/generate.sh


execute on a shell

done !