?

Log in

No account? Create an account
Linux Community's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Saturday, January 5th, 2008

Time Event
12:48p
vncserver connectivity
Edited: found out that 5902 wasn't explicitly allowed in IPTABLES, so I added it with

iptables -I RH-Firewall-1-INPUT -m state --state NEW -p tcp --destination-port 5902 -j ACCEPT

the viewer connects just fine now.

Thanks!



Re: vnc-server-4.1.2-9.el5
OS: RHEL 5

Vncserver is installed and listed in my process list. When I attempt to connect to the machine(myserver) from a different box(clientpc) on the same network the connection fails.

A few things:
/etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=myserver


Port scan
[user@clientpc ~]# nmap -sT -O myserver

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-01-05 12:54 EST
Interesting ports on myserver (1.2.3.4):
Not shown: 1666 closed ports
PORT STATE SERVICE
22/tcp open ssh
5802/tcp open vnc-http-2
5902/tcp open vnc-2


Process list
ps -ax | grep vnc

16303 pts/1 S 0:00 Xvnc :6 -desktop myserver:6 (myusername) -httpd /usr/share/vnc/classes -auth /home/myusername/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/myusername/.vnc/passwd -rfbport 5906 -pn
16307 pts/1 S 0:00 vncconfig -iconic
16665 ? S 0:00 Xvnc :2 -desktop myserver:2 (myusername) -httpd /usr/share/vnc/classes -auth /home/myusername/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/myusername/.vnc/passwd -rfbport 5902 -pn
16670 ? S 0:00 vncconfig -iconic


And the address I'm entering in ultravnc:
myserver:2

Ultravnc shows that the connection is attempted over port 5902.
The error is: "Failed to connect to server !"



So I can ping myserver and see an open 5902 port, but connectivity.


Any suggestions?

<< Previous Day 2008/01/05
[Calendar]
Next Day >>
About LiveJournal.com