2026年10月22日 星期四

Fortigate LAN port disable / Enable via CLI

用 CLI指令將port3 disable / enable.

1. Disable LAN port3
config system interface
    edit "port3"
        set status down
    next
end

2. Enable LAN port3
config system interface
    edit "port3"
        set status up
    next
end

3. 查詢 port3 狀態
diagnose hardware deviceinfo nic port3

Proxmox host and VM network disconnect

Reference: 
https://forum.proxmox.com/threads/fixed-intermittent-network-dropout-with-intel-i218-lm-nic-e1000e-hardware-offloading-bug.182062
 
狀況:
虛擬機啟用docker container不會卡住。
在防火牆設定外部port 443對應到虛擬機的port 443,過幾分鐘實體主機和虛擬機的網路會卡住。
把防火牆port 443對應關閉,重新插拔網路線,實體主機和虛擬機的網路會恢復。 
 
原因:
網路卡e1000e Linux kernel driver bug. 
在 kernel 會看到這樣的錯誤 e1000e 0000:00:19.0 nic0: Detected Hardware Unit Hang 
 
解法:
Step 1 -- Identify your physical NIC name
lspci | grep -i ethernet
ip link show

Note the interface that is the bridge port for vmbr0.

Step 2 -- Check offloading is currently enabled (confirms the issue applies to you)
ethtool -k nic0 | grep -E 'tcp-seg|generic-seg|generic-receive|rx-vlan|tx-vlan|scatter'

If any entries show on, proceed.

Step 3 -- Disable offloading immediately (temporary, to test)
Replace nic0 with your interface name:

ethtool -K nic0 gso off tso off rxvlan off txvlan off gro off tx off rx off sg off

Step 4 -- Make it permanent
Edit /etc/network/interfaces:
nano /etc/network/interfaces
iface nic0 inet manual
    post-up ethtool -K nic0 gso off tso off rxvlan off txvlan off gro off tx off rx off sg off 
 

2026年7月20日 星期一

痛風紀錄 2026/7/15

2026/7/15 早上發作,左腳前掌。早上吃科學中藥(上中下通用痛風丸),中午、晚上 秋水仙素,睡前 痛風丸。
2026/7/16 早上 痛風丸,中午、晚上 秋水仙素,睡前 痛風丸。(這天最痛)
2026/7/17 早上腹瀉(秋水仙素副作用)。 早上、晚上 痛風丸。(差不多好了)
2026/7/18 早上、晚上 痛風丸。 
2026/7/19 晚上 痛風丸。  
2026/7/20 晚上 痛風丸。  

2026年2月9日 星期一

樹莓派 5 關閉自動更新 (Raspberry Pi 5 disable auto update)

systemctl disable apt-daily.timer
systemctl disable apt-daily-upgrade.timer 

cd /etc/cron.daily
chmod 644 apt-compat
mv apt-compat apt-compat_disabled
vi  apt-compat_disabled
#exec /usr/lib/apt/apt.systemd.daily 
 
觀察是否還會有自動更新