差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:pve_openvpn [2023/10/26 19:10] – [查詢管理性資訊] jonathantech:pve_openvpn [2023/10/29 00:44] (目前版本) jonathan
行 245: 行 245:
 -A INPUT -p udp -m udp --dport 161 -j ACCEPT  -A INPUT -p udp -m udp --dport 161 -j ACCEPT 
 : :
-</file>更改後重啟主機讓 firewall 生效+</file>更改後重啟主機或是使用 iptable-restore 讓 firewall 生效<cli> 
 +iptable-restore < /etc/iptables.up.rules 
 +</cli>
  
 ===== 安裝 openvpn-snmp-stats 強化監控 ===== ===== 安裝 openvpn-snmp-stats 強化監控 =====
行 274: 行 276:
 </cli> </cli>
   * 可以至 LibreNMS 針對這台主機開啟 Applications -> Wireguard 就可以出現類似以下的畫面 \\ {{:tech:2023-07-10_230252.png?1024|}}    * 可以至 LibreNMS 針對這台主機開啟 Applications -> Wireguard 就可以出現類似以下的畫面 \\ {{:tech:2023-07-10_230252.png?1024|}} 
 +
 +===== 安裝 openvpn-monitor 強化監控 =====
 +  * 參考 - https://registry.hub.docker.com/r/ruimarinho/openvpn-monitor
 +  * 在 openvpn server 開啟監控服務 Port Exp. 5555<cli>
 +vi /etc/openvpn/server.conf
 +</cli><file>
 +:
 +status /var/log/openvpn/server.log
 +verb 4
 +management 0.0.0.0 5555
 +:
 +</file>
 +  * 重啟 openvpn server 讓設定生效, 可以使用 netstat 查看是否 port 5555 已經開啟<cli>
 +root@ct-devops-vpn ~# netstat -lntp | grep openvpn
 +tcp        0      0 0.0.0.0:5555            0.0.0.0:              LISTEN      88842/openvpn       
 +tcp        0      0 0.0.0.0:443             0.0.0.0:              LISTEN      88842/openvpn    
 +</cli>
 +  * 參考 [[tech:openvpn-monitor]] 
 +
 ===== 參考網址 ===== ===== 參考網址 =====
   * https://forum.proxmox.com/threads/openvpn-in-the-lxc.41889/   * https://forum.proxmox.com/threads/openvpn-in-the-lxc.41889/
  • tech/pve_openvpn.1698318613.txt.gz
  • 上一次變更: 2023/10/26 19:10
  • jonathan