LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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
 
Old 10-08-2012, 01:36 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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

Code:
#netstat -ntlp | grep vnc
 
  


Reply


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


All times are GMT -5. The time now is 06:50 AM.

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