LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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, 04:02 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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, 01: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, 01:19 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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


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


All times are GMT -5. The time now is 04:10 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