VNC Viewer to a virtual CentOS 6 fails when iptables is enabled
On a Virtual CentOS 6 (2.6.32-71.el6.x86_64 ip address 126.96.36.199). 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 (188.8.131.52: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.