安全機制

  1. 查詢 tgtd ports
    [root@dyH ~]# netstat -tlunp | grep tgtd
    tcp      0      0 0.0.0.0:3260       0.0.0.0:*       LISTEN      4630/tgtd      
    tcp      0      0 :::3260            :::*            LISTEN      4630/tgtd
    
  2. 防火牆設定
    [root@dyH ~]# vim /etc/sysconfig/iptables
    ######################################################
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 3260 -j ACCEPT
    ######################################################
    
  3. 防火牆重新啟動
    [root@dyH ~]# /etc/init.d/iptables restart
    
  4. 開機啟動防火牆
    [root@dyH ~]# chkconfig iptables on