next up previous contents
Next: 網頁遠端連線 Up: NOVNC Previous: NOVNC 安裝與啟動   Contents

安全機制

  1. 設定防火牆。
    [root@dyw219 ~]# vim /etc/sysconfig/iptables
    [root@dyw219 ~]# grep 6080 /etc/sysconfig/iptables -B2
    .....
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 6080 -j ACCEPT
    ......
    
  2. 重新啟動防火牆。
    [root@dyw219 ~]# /etc/init.d/iptables restart
    iptables: Flushing firewall rules:                         [  OK  ]
    iptables: Setting chains to policy ACCEPT: nat filter      [  OK  ]
    iptables: Unloading modules:                               [  OK  ]
    iptables: Applying firewall rules:                         [  OK  ]
    



2017-05-01