Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-08-2012, 01:30 AM   #1
Registered: Aug 2012
Posts: 40

Rep: Reputation: Disabled
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 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 (
“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.
Old 10-08-2012, 01:36 AM   #2
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
did you checked your firewall if it is listeing to vnc port no. as it is not fixed to 5902

#netstat -ntlp | grep vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC without "viewer" or a virtual Xorg Display Guilherme Linux - Desktop 2 12-30-2011 06:54 AM
VNC Server on CentOS - Viewer on XP pdelassus Linux - Software 12 05-28-2011 05:45 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 10:38 AM
vnc viewer how to ? ashintoms Linux - Networking 2 07-25-2007 07:43 AM
VNC Viewer Magikx21 Linux - Networking 4 04-28-2005 12:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration