Google Ad unit

顯示包含「網際網路」標籤的文章。顯示所有文章
顯示包含「網際網路」標籤的文章。顯示所有文章

OpenDNS+OpenWRT=家用版parental control

PG年頭開始用openwrt,因為是免費,夾埋tplink archer c7,成為平靚正組合。子女家中上課後使用電腦時間多了。發現佢地玩遊戲、發電郵、睇youtube的時候也多了。

決定作出“一些“管制,ipad/手提多數用無線上網。首先在dhcp server,以mac address為記認,每次連接派發相同IP address[1]。

再設定一個"kids"群組, 該組經opendns nameserver上網。再係opendns上阻擋特定的網站e.g. social network, webmail。

Procedure:

1. edit /etc/config/dhcp to add a new section

config tag 'kids'
    list dhcp_option '6,208.67.222.222,208.67.220.220'

2. Now add individual sections for all devices you want to include in the ‘kids’ section:

config host
    option name 'pluto'
    option mac 'YOUR DEVICE MAC ADDRESS'
    option ip 'YOUR DEVICE ADDRESS ON THE INTERNAL NETWORK'
    option tag 'kids'

3. Restart dnsmasq with: /etc/init.d/dnsmasq restart

opendns有家用版,登記及使用費用全免。
想簡單d,成個network都經opendns出街。用佢resolve ipaddress. 不過就變成全部都去唔到social network/webmail. [2]

[1]https://nicolas314.wordpress.com/2014/12/10/parental-control-with-openwrt-and-opendns/
[2]https://support.opendns.com/hc/en-us/community/topics