顯示具有 Network 標籤的文章。 顯示所有文章
顯示具有 Network 標籤的文章。 顯示所有文章

2025年8月27日 星期三

用 Grafana 呈現 zabbix 資料

Reference:
 
yum install -y grafana
systemctl start grafana-server
systemctl enable grafana-server
 
firewall-cmd --zone=public --add-port=3000/tcp --permanent
firewall-cmd --reload
 
用瀏覽器開啟 http://server-IP:3000/ 
預設帳號 admin,密碼 admin (會要求立即設定新密碼) 
 
安裝 zabbix plugin,安裝後要 Enable。

2025年8月5日 星期二

2025年1月17日 星期五

Zabbix 偵測 remote port

範例:偵測遠端的 https port 443。
  • 用Template之後可重複使用
  • 在 items 選 Simple Check,搭配 {$IP} 參數
  • 在 host / Macros 設定 {$IP} 參數

測試UDP port

Reference:
 
安裝Windows版nmap
 
測試UDP port的指令
nmap -sU xx.xx.xx.xx -p port -Pn 

-sU : 掃描UDP
-p : port
-Pn : 跳過ping測試

 
 
 
 
 

2025年1月16日 星期四

Zabbix 新增偵測目標

Reference:
Zabbix 使用SNMP監控 Linux
 

網管軟體 Zabbix

Reference:
監控大挑戰 – 以 Zabbix 為例 Day 05. 安裝 Zabbix Server
 
安裝步驟:
install RockyLinux 9 (minimal install)
dnf update
dnf install -y epel*
 
#關閉SELinux (預設是開啟,會阻擋偵測其他 port)
vi /etc/selinux/config; SELINUX=disabled
setenforce 0
 
#到Zabbix網站選擇安裝方式

2022年3月23日 星期三

2022年3月9日 星期三

Fortigate forticlient sslvpn DNS 問題

Reference:

狀況:
iPhone, iPad 使用 foticlient sslvpn 撥通後,無法開啟內部網頁。

原因:
forticlient iOS 版 bug,需用指令修改 Fortigate 設定。

解法:
用 ssh 連上 Fortigate,執行以下指令。
config vpn ssl settings
set dns-suffix "example.com;example.net;example.org"




2022年2月13日 星期日

Fortigate close port 2000, 5060

Reference:
 
從 CLI 調整:
config system session-helper
delete 13
end
 
config system settings
set default-voip-alg-mode kernel-helper-based
end

config voip profile
edit default
config sip
set status disable
end
end
 
清除 session:
diagnose sys session clear

再次用 nmap 測試,如果還是有 open port,
請從 GUI 檢查 System / Administrators / Trust Hosts 的設定。
先設定 Trust Hosts,再從非 Trust Hosts 測試。
因為 Trust Host 權限最大,如果 Trust Hosts 沒設定,預設全部都是 Trust Hosts。
 

2021年12月22日 星期三

Juniper SRX config backup

Reference:
 
使用指令產生backup config file
  • 用 putty 連上 Junoper SRX
  • configure
  • save /cf/var/tmp/20211022.conf

2021年11月24日 星期三

Fortigate 100D send syslog to linux

Reference:
 
Fortigate 100D網頁管理畫面沒有可以設定將 syslog 傳到外部的 log server。
必須用 putty 連上 console 下指令設定。
 
config log syslogd setting
    set status enable
    set server "192.168.1.171"
    set facility alert
    set source-ip 192.168.1.254
end

2021年6月30日 星期三