2021年11月22日 星期一

Fortigate disable port 5060, 2000, 541

Reference:
 
port 5060, 2000:
 
To disable the SIP helper /  ALG i used the following code

config system settings
set default-voip-alg-mode kernel-helper-based
end

Important is that you need to configure it on all the VDOM`s

A reboot is not necessary, Clearing the sessions worked for us:

diagnose sys session filter
diagnose sys session filter dport 5060
diagnose sys session clear
diagnose sys session filter dport 2000
diagnose sys session clear
 
PS. port 2000關不掉,找時間重開機試試看。
 
port 541:
config system interface
edit <wan-interface>
unselect allowaccess fgfm
set ident-accept enable
end

2021年11月17日 星期三

Bacula 11.0.5 client setup

Reference:
 
Linux client:
  • yum install wget -y
  • wget https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc --no-check-certificate
  • rpm --import Bacula-4096-Distribution-Verification-key.asc
  • vi /etc/yum.repos.d/Bacula.repo
    • [Bacula-Community]
      name=CentOS - Bacula - Community
      baseurl=http://www.bacula.org/packages/[access key]/rpms/11.0.5/el7/
      enabled=1
      protect=0
      gpgcheck=1
    • access key請參考 Bacula 11.0.5 install with rpm

2021年11月8日 星期一

Bacula web report: baculum installation

Reference:
 
baculum是bacula的web頁面,只能查看備份任務的資訊,不能修改備份任務。
 
步驟:
  • rpm --import http://bacula.org/downloads/baculum/baculum.pub
  • vi /etc/yum.repos.d/baculum.repo
    • [baculumrepo]
      name=Baculum CentOS repository
      baseurl=https://www.bacula.org/downloads/baculum/stable-11/centos/
      gpgcheck=1
      enabled=1
  • yum install baculum-web baculum-web-httpd baculum-web-lighthttpd baculum-web-selinux -y
  • yum install baculum-api baculum-api-httpd baculum-api-lighthttpd baculum-api-selinux -y
  • systemctl start httpd
  • systemctl enable httpd

Bacula 11.0.5 install with source tar file

Reference:
 
步驟:
  •  安裝 CentOS 7.x (最小安裝即可)
    • yum install mariadb-server mariadb-devel mariadb gcc gcc-c++ -y
      systemctl start mariadb.service
      systemctl enable mariadb.service
  • Source tar file download
    • download bacula-11.0.5.tar.gz
  • tar zxvf bacula-11.0.5.tar.gz

Bacula 11.0.5 install with rpm

Reference:
 
步驟:
  • 到 Deb and rpm Packages 申請 rpm 下載,會收到 email 通知下載連結
    • 把 access key (紅色部分) 複製下來

2021年11月3日 星期三

Bacula backup tool installstion (open source)

Reference:
 
(這方法裝起來的Bacula是5.2.13版,和bacula.org上的版本落差頗大)
 
步驟:
  • 安裝 CentOS 7
  • yum install -y bacula-director bacula-storage bacula-console bacula-client mariadb-server
  • vi /etc/sysconfig/selinux
    • SELINUX=disabled
  •  setenforce 0 
  • systemctl start mariadb
  • systemctl enable mariadb 
  • 調整為mysql
    • alternatives --config libbaccats.so
      • Enter to keep the current selection[+], or type selection number: 1

2021年11月2日 星期二