參考資料:
https://adersaytech.com/tutorial/kb-article/win10-win11-keep-using-ie11.html
安裝Pi-Hole
https://pi-hole.net/
安裝DNS over HTTPS (DoH)
https://docs.pi-hole.net/guides/dns/cloudflared/
內有youtube 廣告阻擋更新
https://mailtojacklai.medium.com/%E5%AD%B8%E9%9B%BB%E8%85%A6-%E7%94%A8aws%E8%A8%AD%E5%AE%9Api-hole%E4%BE%86%E9%98%BB%E6%93%8B%E5%BB%A3%E5%91%8A-bc1ea8a0ff07
https://github.com/kboghdady/youTube_ads_4_pi-hole
https://www.reddit.com/r/pihole/comments/9w5swx/i_think_ive_managed_to_block_youtube_ads_with/
中文化
https://github.com/verkeys/Pi-hole-Chinese
Pi-Hole 競品 AdGuard Home
https://www.jkg.tw/p1483/
安裝方式
https://github.com/AdguardTeam/AdGuardHome/wiki
給未來的自己:
在 http://pi-hole/admin/groups-adlists.php 裡面新增
https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/youtubelist.txt
https://raw.githubusercontent.com/HenningVanRaumle/pihole-ytadblock/master/ytadblock.txt
https://raw.githubusercontent.com/anudeepND/youtubeadsblacklist/master/hosts.txt
http://www.malwaredomainlist.com/hostslist/delisted.txt
# https://github.com/imkarthikk/pihole-facebook (三、四年未更新)
https://github.com/imkarthikk/pihole-facebook/blob/master/pihole-facebook.txt
https://github.com/imkarthikk/pihole-facebook/blob/master/pihole-whatsapp.txt
輸入完畢之後#pihole -g
https://trainax.github.io/PiHoleLists/
https://obutterbach.medium.com/unlock-the-full-potential-of-pihole-e795342e0e36
##
root@raspberrypi:/home/pi# cat /etc/pihole/adlists.list
# Prevent Trackers and Malwares
https://raw.githubusercontent.com/DRSDavidSoft/additional-hosts/master/domains/blacklist/adservers-and-trackers.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://gitlab.com/my-privacy-dns/matrix/matrix/-/raw/master/source/tracking/domains.list
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardApps.txt
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileAds.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/StreamingAds/hosts
https://raw.githubusercontent.com/w13d/adblockListABP-PiHole/master/Spotify.txt
https://raw.githubusercontent.com/DRSDavidSoft/additional-hosts/master/domains/blacklist/adservers-and-trackers.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/AdAway-Default-Blocklist.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://v.firebog.net/hosts/Easyprivacy.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/FadeMind-addSpam.txt
https://raw.githubusercontent.com/mitchellkrogza/The-Big-List-of-Hacked-Malware-Web-Sites/master/hacked-domains.list
# Prevent Analytics
https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/AmazonFireTV.txt
https://raw.githubusercontent.com/mitchellkrogza/Stop.Google.Analytics.Ghost.Spam.HOWTO/master/output/domains/INACTIVE/list
https://raw.githubusercontent.com/nickspaargaren/no-google/master/categories/analytics.txt
https://raw.githubusercontent.com/nickspaargaren/no-google/master/categories/analyticsparsed
https://raw.githubusercontent.com/kowith337/PersonalFilterListCollection/master/hosts/hosts_facebook0.txt
https://raw.githubusercontent.com/anudeepND/blacklist/master/facebook.txt
# Prevent Spyware
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileSpyware.txt
https://raw.githubusercontent.com/XionKzn/PiHole-Lists/master/PiHole_HOSTS_Spyware.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/WindowsSpyBlocker81.txt
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
# Prevent Coinmining network
https://gitlab.com/ZeroDot1/CoinBlockerLists/raw/master/list.txt
https://gitlab.com/ZeroDot1/CoinBlockerLists/raw/master/list_browser.txt
https://gitlab.com/ZeroDot1/CoinBlockerLists/raw/master/hosts
https://gitlab.com/ZeroDot1/CoinBlockerLists/raw/master/hosts_optional
https://raw.githubusercontent.com/anudeepND/blacklist/master/CoinMiner.txt
https://raw.githubusercontent.com/austinheap/sophos-xg-block-lists/master/nocoin.txt
# Prevent Ransomware
https://raw.githubusercontent.com/pirat28/IHateTracker/master/iHateTracker.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/CryptoWall-Ransomware-C2-Domain-blocklist.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Locky-Ransomware-C2-Domain-Blocklist.txt
https://raw.githubusercontent.com/XionKzn/PiHole-Lists/master/Cerber_Ransomware.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Ransomware-Domain-Blocklist.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/TeslaCrypt-Ransomware-C2-Domain-Blocklist.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/TeslaCrypt-Ransomware-Payment-Sites-Domain-Blocklist.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/TorrentLocker-Ransomware-C2-Domain-Blocklist.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/TorrentLocker-Ransomware-Payment-Sites-Domain-Blocklist.txt
# Prevent Phishing
https://gitlab.com/Kurobeats/phishing_hosts/raw/master/hosts
https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt
##
https://lqe41.pixnet.net/blog/post/27271482
https://king39461.pixnet.net/blog/post/320775211
#內有Regex碼
https://avoidthehack.com/best-pihole-blocklists
自動更新
https://discourse.pi-hole.net/t/auto-update-pi-hole/481
https://avoidthehack.com/best-pihole-blocklists
參考資料:https://www.raspberrypi.com.tw/tag/%E5%A6%82%E4%BD%95%E6%9B%B4%E6%96%B0raspbian/
1. 更新 /etc/apt/sources.list 底下的套件清單。
$ sudo apt-get update
2. 比對套件清單決定是否需要更新,但如果要更新的套件有相依性問題,則放棄更新。
$ sudo apt-get upgrade
3. 會處理新版本套件與相依性套件的衝突,並試著安裝/移除有問題的套件來完成更新。
$ sudo apt-get dist-upgrade
4. 刪除之前因為有相依性而安裝,但現在已經不再使用的套件(非必要)。
$ sudo apt-get autoremove
5. 清除下載到 /var/cache/apt/archives 的 .deb 套件檔(非必要)
$ sudo apt-get autoclean
6. 更新核心和韌體到最新版本(可能不穩定),因此更新前一定要先備份重要資料!
$ sudo rpi-update
在 Pi 3B 依序執行 1 到 6 的步驟(4 和 5 非必要)以後關機,將 microSD 拔下換到 Pi 3B+,就可以順利在 Pi 3B+ 上使用了。
定期執行指令(定期更新)
https://www.itread01.com/content/1542259687.html
樹莓派 NTP SERVER 設定,含 PPS 訊號源
http://oblitet.blogspot.com/2017/08/ntp-server-pps.html
純軟體,需網路
https://www.youtube.com/watch?v=V87_FMLLMWE
用 Raspberry Pi + GPS 模組建立 stratum 1 的 NTP server
https://medium.com/@phutidus/%E7%94%A8-raspberry-pi-gps-%E6%A8%A1%E7%B5%84%E5%BB%BA%E7%AB%8B-stratum-1-%E7%9A%84-ntp-server-cb1b501a5f91
以下為指令安裝NTP Server
https://rishabhdevyadav.medium.com/how-to-install-ntp-server-and-client-s-on-ubuntu-18-04-lts-f0562e41d0e1
sudo apt-get update
sudo apt-get install ntp
sntp --version
sudo nano /etc/ntp.confpool time.stdtime.gov.tw
pool tock.stdtime.gov.tw
pool watch.stdtime.gov.tw
pool clock.stdtime.gov.tw
pool tick.stdtime.gov.tw
以下指令為安裝NTP Client
sudo apt-get install ntpdate
sudo nano /etc/hosts192.168.1.250 759NTP
sudo ntpdate NTP-server-host
sudo timedatectl set-ntp off
| 產品代號 | 產品名稱 |
| KX-TES824 | 電話總機本體(內建:三外線八內線,含來電顯示卡) |
| KX-T7716 | 三行顯示螢幕電話 |
| KX-T7730 | 單行顯示螢幕電話 |
| KX-T7735 | 三行顯示螢幕電話 |
| KX-T7740 | DSS中繼台 |
| KX-T7750 | 無顯示螢幕電話 |
| KX-TCA60 | 2.5MM耳機麥克風 |
| KX-30865 | 門口機(最多四台) |
| KX-TE82460 | 2二部門口機/2開鎖門 |
| KX-TE82461 | 四部門口機/開門鎖 |
| KX-TE80474 | 8內線 (17 ~ 24) |
| KX-TE82480 | 二外線(CO7-8) 八內線(Jack17-24) 擴充卡(擴充卡二) |
| KX-TE82481 | 二外線 八內線擴充卡(擴充卡一) |
| KX-TE82483 | 三外線(CO4-6) 八內線(Jack9-16) 擴充卡(擴充卡一) |
| KX-TE82491 | OGM語音卡(1通道 180秒 OGM=來電接待語) Message Expansion Card |
| KX-TE82492 | 語音答錄卡(2迴路,60分鐘) |
| KX-TE82493 | 來電號碼顯示卡(3外線/1卡) |
| KX-TE82494 | 3路來電顯示卡 (單模FSK,最多三個) |
| KX-T123250 | 原廠語音信箱 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# EDIT YOUR DETAILS / CONFIGURATION HERE
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Define DDNS Accounts for RB Interfaces, one per interface.
# The RB interface
:global ddnsinterface "ether1"
# The DDNS Provider (Choice of NOIP, DYNDNS or EVERYDNS)
:global ddnsprovider "NOIP"
# The Hostname to update.
:global ddnshost "NOIPHOST"
# Your Account Username
:global ddnsuser "NOIPUSER"
# Your Account Password
:global ddnspass "NOIPPASS"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# END OF USER DEFINED CONFIGURATION
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Define Global Variables
:global ddnssystem ("mt-" . [/system package get system version] )
:global ddnsip
:global ddnslastip
:if ([ :typeof $ddnslastip ] = nil ) do={ :global ddnslastip "0" }
:if ($ddnsprovider = "NOIP") do={
:global $ddnsprovname "NoIP"
:global str "/nic/update?hostname=$ddnshost&myip=$ddnsip"
:global $ddnsprovaddress "dynupdate.no-ip.com"
} elseif ($ddnsprovider = "DYNDNS") do={
:global $ddnsprovname "DynDNS"
:global str "/nic/update?hostname=$ddnshost&myip=$ddnsip&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
:global $ddnsprovaddress "members.dyndns.org"
} elseif ($ddnsprovider = "EVERYDNS") do={
:global $ddnsprovname "EveryDNS"
:global str "/index.php?ver=0.1&ip=$ddnsip&domain=$ddnshost"
:global $ddnsprovaddress "dyn.everydns.net"
}
# Grab the current IP address on that interface.
:global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface ] address ]
# Did we get an IP address to compare?
:if ([ :typeof $ddnsip ] = nil ) do={
:log info ("NoIP: No ip address present on " . $ddnsinterface . ", please check.")
} else={
:if ($ddnsip != $ddnslastip) do={
:log info $ddnsprovname.": Sending UPDATE!"
/tool fetch address=$ddnsprovaddress src-path=$str mode=http user=$ddnsuser password=$ddnspass dst-path=("/DDNS-".$ddnsprovname.".".$ddnshost)
}
:delay 1
:local str [/file find name="$ddnsprovider.$ddnshost"];
/file remove $str
:global ddnslastip $ddnsip
}
}