LinuxQuestions.org
Review your favorite Linux distribution.
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 03-04-2004, 09:50 AM   #1
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
Unhappy Help with VNC and Fedora


I'm having problems connecting to my Fedora box via VNC. I keep getting connection refused. I set up a rule for the firewall to allow TCP connections 5900-5902 and still no luck. I connect via ssh run the command vncserver :1 and it says it starts, but when I try to connect I'm unable to. I've tried connecting directly with vnc to ipaddr:1 and I've also tried tunneling through ssh (which I do to my RedHat 9.0 box). I know it's probably something I'm overlooking. I've searched google and everywhere else I could think and couldn't find an answer. Any ideas?
 
Old 03-04-2004, 03:02 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I set up a rule for the firewall to allow TCP connections 5900-5902 and still no luck
OK, but is there a rule in front of this one that might drop the packets? To test this, I'd either put this rule as the first one in the INPUT chain or take down the firewall entirely and see if you can connect then.
 
Old 03-05-2004, 12:04 PM   #3
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Original Poster
Rep: Reputation: 17
yes it was in front of any rules that would drop packets. It was right after the rule that allows me to connect via webmin. I disabled the firewall last night and still couldn't connect. Now can someone tell me how to turn the firewall back on since I can't do it via webmin.
 
Old 03-05-2004, 12:19 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Well, if you took the firewall down and you still can't connect, that suggests that vncserver isn't doing its job. If you run ps -A you should see that Xvnc is running and if you do a netstat -l or [/B]nmap localhost[/B] you should see that something is listening on the appropriate ports.

As for restarting your firewall, it may depend on how you normally start it. On my machine I just have to run a script (/etc/rc.d/rc.firewall) and its up. I"m not sure about RedHat, though maybe service iptables restart will do the trick.
 
  


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
fedora vnc shadow Fedora 11 04-29-2009 11:03 AM
vnc and fedora biggyfries Fedora 6 07-06-2004 02:47 PM
VNC on Fedora core 2 inventorriz Linux - Networking 7 06-21-2004 07:42 AM
vnc problem with fedora shadow Linux - Software 0 02-20-2004 11:52 PM
Fedora firewall and VNC TSloth Fedora 2 01-20-2004 08:43 PM

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

All times are GMT -5. The time now is 03:27 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
Open Source Consulting | Domain Registration