Koozali.org: home of the SME Server

VNC setup

jladdm3

VNC setup
« on: January 11, 2007, 12:34:51 AM »
I have a local machine that i have installed VNC server on. It has a static ip address (internet works). I have set up port forwarding for the e-mail server and all that stuff on the SME firewall and it works fine. Just cant seem to get VNC set up.

This is what i did to set up VNC:
1. Installed VNC on the local machine (edit: Windows 2000 computer)
2. Went to port forwarding on the SME manager and created port 5900 to go to port 5900 with the destination ip of the local mahcine that has VNC.
3 Installed VNC viewer on a local machine and typed in the SME firewall ip address. -this didnt work... also tried putting :5900 after the ip address and it still didnt work. (edit: i need to access it from outside the network)


 what am i doing wrog or not doing? please help me out. Thanks!

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: VNC setup
« Reply #1 on: January 11, 2007, 12:46:19 AM »
Quote from: "jladdm3"
Installed VNC viewer on a local machine and typed in the SME firewall ip address. -this didnt work... also tried putting :5900 after the ip address and it still didnt work.


 what am i doing wrog or not doing? please help me out. Thanks!


Use the ip address of the machine with VNC server installed.
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #2 on: January 11, 2007, 12:49:21 AM »
That would only work for being inside the network.... wouldnt it?
I need to be able to access the machine from outside the network... like at home.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #3 on: January 11, 2007, 01:02:46 AM »
Quote from: "jladdm3"
That would only work for being inside the network.... wouldnt it?
I need to be able to access the machine from outside the network... like at home.


Your original post to me indicated that you had VNC Server on one local computer and VNC Client on another local computer. Sorry if I misunderstood.

Depending on how you installed the VNC server ::5900 will open a window showing the linux desktop and ::5901 will open a window manager login.
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #4 on: January 11, 2007, 01:21:12 AM »
so... i want to open 5901 instead of 5900? sorry i forgot to say that  the computer set up as VNC server is a win2000 computer.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #5 on: January 11, 2007, 01:25:59 AM »
Quote from: "jladdm3"
win2000 computer.


In that case I don't know.
Regards,
William

IF I give advise.. It's only if it was me....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: VNC setup
« Reply #6 on: January 11, 2007, 06:26:04 PM »
Quote from: "jladdm3"
I have a local machine that i have installed VNC server on. It has a static ip address (internet works). I have set up port forwarding for the e-mail server and all that stuff on the SME firewall and it works fine. Just cant seem to get VNC set up.

This is what i did to set up VNC:
1. Installed VNC on the local machine (edit: Windows 2000 computer)
2. Went to port forwarding on the SME manager and created port 5900 to go to port 5900 with the destination ip of the local mahcine that has VNC.
3 Installed VNC viewer on a local machine and typed in the SME firewall ip address. -this didnt work... also tried putting :5900 after the ip address and it still didnt work. (edit: i need to access it from outside the network)


 what am i doing wrog or not doing? please help me out. Thanks!
I have had it working once on a SME 7.0rc1 and an XP client running VNC.

As I can remember correctly I installed the vncserver on the client and setup port forwarding on the smeserver for port 5900 to the internal IP number of the Windows XP box.

The 5900 port only works with a VNC client at the other end (where you are sitting and try to connect). If you would like to use the java client that comes with VNC you will have to use port 5800 as thie java client runs there by default setup.

Could it perhaps be that ther is some sort of firewall on the  W2k box? Can you access the W2k box over the internal network from some other client in your network?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #7 on: January 11, 2007, 07:29:22 PM »
thanks for your help... i can access the VNC server from inside the network with no problems. but when i try from outside the network... it tries to connect but then i get an error that says it has timed out. i have tried opening ports 5900 and 5800 and neither seem to work.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #8 on: January 11, 2007, 07:37:39 PM »
Quote from: "jladdm3"
thanks for your help... i can access the VNC server from inside the network with no problems. but when i try from outside the network... it tries to connect but then i get an error that says it has timed out. i have tried opening ports 5900 and 5800 and neither seem to work.
Are you sure that you correctly created your portforwarding rule? Did you create both (UDP and TCP) for port 5900?

Have you already tried this: http://www.realvnc.com/cgi-bin/nettest.cgi
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #9 on: January 11, 2007, 07:44:32 PM »
Quote from: "cactus"
Have you already tried this: http://www.realvnc.com/cgi-bin/nettest.cgi
I just quickly installed UltraVNC on my client and configured port 5900 for UDP and TDP to my local ip number. If I now connect to my outside ip number I get the following result:
Code: [Select]
The IP address requesting this web page is xxx.xxx.xxx.xxx

Connecting to port 5900 ... succeeded.

Waiting for server to send version string...

Unknown server ( RFB 003.004 )
Seems OK to me.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #10 on: January 11, 2007, 08:06:45 PM »
i dont know what im doing wrong! something isnt working out here, i must be missing a step. this is how i set up port forwarding.
Protocol | Source Ports  | Destination Host IP Address |   Destination ports
TCP------------5900-----------------192.168.2.2 -------------------5900
UDP------------5900-----------------192.168.2.2 -------------------5900

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #11 on: January 11, 2007, 08:12:32 PM »
Quote from: "jladdm3"
i dont know what im doing wrong! something isnt working out here, i must be missing a step. this is how i set up port forwarding.
Protocol | Source Ports  | Destination Host IP Address |   Destination ports
TCP------------5900-----------------192.168.2.2 -------------------5900
UDP------------5900-----------------192.168.2.2 -------------------5900

Is 192.168.2.2 the ip number of your W2k box? It should be.

Did you also try to access this page from your W2k box? What does it report?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #12 on: January 11, 2007, 08:19:18 PM »
yes the 192.168.2.2 is my win2k machine that has VNC server.


I tried to access that link above (from that win2k computer)... and I got: "connecting to port 5900....failed."

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #13 on: January 11, 2007, 08:25:48 PM »
Quote from: "jladdm3"
I tried to access that link above (from that win2k computer)... and I got: "connecting to port 5900....failed."
Then there is some problem connecting from outside your network to your local box through your SME server/gateways. Is the SME Server the only firewall standing in between or is there perhaps a router or other firewall in between as well?
What does the following command output when you execute it on your server:
Code: [Select]
config show masq
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #14 on: January 11, 2007, 08:46:36 PM »
type that command on the SME server?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #15 on: January 11, 2007, 08:49:37 PM »
Quote from: "jladdm3"
type that command on the SME server?
Yes iether sit behind it or login using remote access, SSH for instance, as root. Issue the command and see what it displays to you.

Are there no other firewalls between the remote host and the local box other than the SME Server?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #16 on: January 11, 2007, 10:27:15 PM »
Quote
What does the following command output when you execute it on your server:
Code: [Select]
config show masq


it says command not found. i entered it exactly... checked and re-checked and i entered it right.

Quote
Are there no other firewalls between the remote host and the local box other than the SME Server?


Correct. no other firewalls besides the SME.

The win2k machine is pluged directly into the same switch as the mail server. and i got portforwarding for the mail server to work (people can log into their mail account from outside the network).

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #17 on: January 11, 2007, 11:29:33 PM »
Quote from: jladdm3
Quote


it says command not found. i entered it exactly... checked and re-checked and i entered it right.



Logged in as root ?

Code: [Select]
[root@tiger ~]# config show masq
masq=service
    DenylogTarget=drop
    Logging=most
    Stealth=no
    TCPMinimizeDelay=22
    Trace=disabled
    pptp=yes
    status=enabled
[root@tiger ~]#
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #18 on: January 12, 2007, 12:24:42 AM »
yup.... i'm logged in as root and run "config show masq" and get "command not found"

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #19 on: January 12, 2007, 12:28:29 AM »
Quote from: "jladdm3"
yup.... i'm logged in as root and run "config show masq" and get "command not found"


Opps... my mistake.

I failed to realize that your using sme 6.

Maybe

Code: [Select]
[root@vmsme6 root]# /sbin/e-smith/db configuration show masq
masq=service
    Logging=most
    Stealth=no
    pptp=yes
    status=disabled
[root@vmsme6 root]#
will work.
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #20 on: January 12, 2007, 12:39:06 AM »
can i access the command prompt of the server from a remote location? because i am not at the server... i know how to use the "server-manager" web utility. but i dont kow how to access command line.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #21 on: January 12, 2007, 01:03:22 AM »
Via Server-manager..

Security - remoteaccess - secure shell settings - allow public access - yes -yes
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #22 on: January 12, 2007, 01:10:35 AM »
Quote
Via Server-manager..

Security - remoteaccess - secure shell settings - allow public access - yes -yes


alright thats all set... now how do i get to the command prompt?
-sorry im kinda new... i appreciate all your help. thanks alot!!!

jladdm3

VNC setup
« Reply #23 on: January 12, 2007, 01:15:05 AM »
ok.... this is weird. i jsut tried to vnc that workstation... and it works!
what changed? i didnt even do anything.

i went back and set the secure shell setting to no access and it still works so that had nothing to do with it... i dont understand, just randomly works now?

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #24 on: January 12, 2007, 01:15:29 AM »
What operating system you connecting from ?

Linux: open a terminal and type
Code: [Select]
ssh root@server-ip  or
Code: [Select]
ssh root@severname

Windows: Download and install PuTTy
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #25 on: January 12, 2007, 01:18:37 AM »
conecting to  it from xp... i forgot about putty i can use that.  
thanks for you help!

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #26 on: January 12, 2007, 01:28:16 AM »
Quote from: "jladdm3"
ok.... this is weird. i jsut tried to vnc that workstation... and it works!
what changed? i didnt even do anything.

i went back and set the secure shell setting to no access and it still works so that had nothing to do with it... i dont understand, just randomly works now?


When you change things via server-manager a whole heap of templates get expanded and services restarted. Maybe thats why it is now working.

Do you know that SME6 is now obsolete and there will be no more support for it?
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #27 on: January 12, 2007, 01:29:58 AM »
yup everything works 100% now. i still dont know what happend so all of a sudden it works..... but im not gonna complain. thanks alot for your help!!!