VNC Viewer to a virtual CentOS 6 fails when iptables is enabled
Hello:
On a Virtual CentOS 6 (2.6.32-71.el6.x86_64 ip address 198.4.173.153). I installed tigervnc and tigervnc-server; update iptables, create VNC password, and issue vncserver :1 to start it up. # service vncserver status Xvnc (pid 1811) is running... # iptables -L … ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpts:vnc-server:5902 … From a Window laptop, VNC Viewer to this VM fails (198.4.173.153:1). “Attempting to connect host” “unable to connect to host: A socket was attempted to an unreachable host. (10065)” If I stop iptables on the VM, VNC Viewer works. Similar VNC configuration on other physical CentOS servers are working fine with iptables enabled. Thanks. Warren |
did you checked your firewall if it is listeing to vnc port no. as it is not fixed to 5902
Code:
#netstat -ntlp | grep vnc |
All times are GMT -5. The time now is 06:20 PM. |