LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 12: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, 12:36 AM   #2
deep27ak
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

Code:
#netstat -ntlp | grep vnc
 
  


Reply



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 05:54 AM
VNC Server on CentOS - Viewer on XP pdelassus Linux - Software 12 05-28-2011 04:45 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
vnc viewer how to ? ashintoms Linux - Networking 2 07-25-2007 06:43 AM
VNC Viewer Magikx21 Linux - Networking 4 04-27-2005 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 PM.

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
Open Source Consulting | Domain Registration