紀錄工作上的點點滴滴

nmcli 指令操作
2024-12-18 linux NetworkManager
處理前動作 檢查文件中已經有配置: /etc/network/interfaces 如果有需要註解,範例如下: # The primary network interface # allow-hotplug enp1s0 # iface enp1s0 inet dhcp 新增網卡配置 sudo ... Read More
關閉centos7防火牆firewalld改用傳統的iptables
2024-11-21 linux firewalld iptables
關閉 centos7 防火牆 firewalld 改用傳統的 iptables 這樣做的原因 因為firewalld 政策是對外嚴謹對內寬鬆,所以當需求是需要對內嚴謹時無法滿足需求 處理方式 預設開機不啟動 且 立即停止 systemctl disable --now firewalld ... Read More
Firewalld Common Questions
2024-11-21 linux firewalld
firewalld 問題整理 AllowZoneDrifting is enabled. 出現 AllowZoneDrifting is enabled. [root@ex-ap test]# systemctl status firewalld ● firewalld.service - ... Read More
Firewalld 學習筆記
2024-11-21 linux firewalld
以下是 firewalld 學習筆記 firewall 網路來源優先 有設定 IP source 優先 有設定 網卡 優先 預設區域 區域簡介 firewalld 的區域(zone)可用來設定網路連線、介面等所處的運作環境,對內使用的區域其防火牆規則會較為寬鬆,反之若是對外的區域其規則會較為嚴謹。 ... Read More
Firewalld Forward Port 防火牆轉發
2024-11-21 linux firewalld
# firewall-cmd --add-forward-port=port=port-number:proto=tcp|udp|sctp|dccp:toport=port-number sudo firewall-cmd --query-masquerade # 查詢有IP 偽裝 sudo ... Read More
Create Local Repository for Yum
2024-11-21 linux yum
建立本地yum倉庫 生一個CentOS7 的環境 local repository 環境 CentOS 7 100GB 存放空間 安裝工具 yum install yum-utils createrepo -y 啟用 EPEL sudo yum install epel-release sudo ... Read More
CRON[204259]: PAM unable to dlopen(pam_pwquality.so)
2024-11-18 linux
詳細錯誤訊息 Nov 18 12:17:01 91214Desktop CRON[204259]: PAM unable to dlopen(pam_pwquality.so): /lib/security/pam_pwquality.so: cannot open shared object ... Read More
install-open-project-on-debain11
2024-11-18 linux
環境 OS: Debain 11 RAM: 4G CPU: 4 Core 新增資料庫 su postgres -c psql CREATE DATABASE openprojectdb; CREATE USER openprojectap WITH PASSWORD ... Read More
Worknot 20241113 1
2024-11-13 工作雜記 git
剛剛 commit 想要反悔 git reset master^ git reset --hard HEAD 處理結果 ~/Documents/gitContent/data/tgroup/test on master ⇡3 ... Read More
Fail2ban
2024-11-13 linux
fail2ban 安裝 apt install fail2ban -y 狀態 檢查監控的服務 fail2ban-client status 檢查被攔阻的IP fail2ban-client status zimbra-smtp 設定完成後檢查 fail2ban-regex ... Read More