/ip firewall address-list add list=blacklist address=xxx.xxx.xxx.xxx/24
/ip firewall address-list add list=blacklist address=xxx.xxx.xxx.xxx-xxx.xxx.xxx.xxx
設定 raw:
/ip firewall raw add chain=prerouting action=drop src-address-list=blacklist
ghostyguo 發表在 痞客邦 留言(0) 人氣(115)
參考影片: https://www.youtube.com/watch?v=WDlZ3f2xHcc
先安裝 visual studio code:
sudo apt install code
ghostyguo 發表在 痞客邦 留言(0) 人氣(9)
ghostyguo 發表在 痞客邦 留言(0) 人氣(7)
有個 HMI OS 的構想, 買了一片 ESP32-S2-Kaluga-1 Kit 來用, 這片是 ESP32-S2, ES_IDF 預設是 ESP32, 如果沒有設定 target, 編譯後無法上傳. 紀錄一下設定/編譯/燒錄的指令:ESP
進入 example project 目錄後 (例如 C:\Espressif\frameworks\esp-idf-v4.4.1\examples\get-started\blink) :
ghostyguo 發表在 痞客邦 留言(0) 人氣(14)
原本有一塊 RPI3, 最近拿起來使用, 發現 package 無法 update, 查網路得知 source 已經搬家, 所以需要更改 /etc/apt/source.list 的內容, 將 mirrordirector.raspbian.org 替換為 legacy.raspbian.org/raspbian:
deb http://legacy.raspbian.org/raspbian/ jessie main contrib non-free rpi
# deb http://.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://legacy.raspbian.org/raspbian/ jessie main contrib non-free rpi
|
ghostyguo 發表在 痞客邦 留言(0) 人氣(6)
最近有些網路應用, 想把流量分開, 不要讓所有流量都進到同一個路由器, 由於 HiNet 只提供一個固定 IP, 只能給一個路由器使用, 如果另一個路由器用 PPPOE 取得浮動 IP, 可透過這個固定 IP 下的網站來進行轉址. 本例中, 浮動 IP 端使用樹莓派當伺服器, 使用 python3 環境, 固定 IP 端為一般 PC, 安裝 xampp (apache+php+mysql).
PC端在 htdocs 下建立一個 smartcenter 目錄, 放3個 php 檔
ghostyguo 發表在 痞客邦 留言(0) 人氣(11)

記錄一下 3/23 1:06 台東規模 5.4 地震與:3/23 1:41 花蓮地震規模 6.6
ghostyguo 發表在 痞客邦 留言(0) 人氣(6)
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 11 08:55:28 2021
ghostyguo 發表在 痞客邦 留言(0) 人氣(4)
最近預計會有一些製作網頁的需求, 學著用 bootstrap5 與 chart.js, 碰到一些問題, 上網搜尋解答, 解決後做個紀錄
Html head 加入 cdn:
ghostyguo 發表在 痞客邦 留言(0) 人氣(13)

掃描子目錄, 自動建立連結標籤, 例如將 startbootstrap 系列的範例解開放在子目錄下:
ghostyguo 發表在 痞客邦 留言(0) 人氣(26)