VNC and Sygate

Roby Van Hoye deroby "at" mail.dma.be
Fri, 14 Jan 2000 12:38:28 +0000


Hi there,

>1. Can anyone tell me how to configure so sygate that I can access my
>clients computer from outside my local area network? <If I run VNC on the
>server, sure I can access it because I have cable modem IP, but I am not
>able to access the client computers with IPs such as 192.168.x.x etc>

Although I haven't tried this yet, I'm willing to give it a try (at your
risk :). 
Let me know if it works, I can't test this myself as I do not have cable,
nor 2 telephone lines at home.

First you need to determine a port for each VNC server. If I remember
correctly the ports are numbered 5900 and up where screen 0 is 5900, screen
1 is 5900 etc.. (correct me if I'm wrong).

Sygate allows you to modify the portlist using a config file. You'll have
to open incomming ports and redirect them to the corresponding servers.

Suppose the VNC Server you want to connect to is on 192.168.0.2, you'll
have to enter a line like this :

:INIT "VNC Server 192.268.0.2"
IN	TCP	5900 5900	192.167.0.2	5900	0	AD
:END

where : 
* TCP is the protocol to be used (which is TCP here, not UDP)
* 5900 - 5900 will be the port the packets are received on
* 192.167.0.2 will be the (internal) ip number the packets will be send to
* 5900 will be the port the packets will be send to
* 0 is the maxidle time, you might want to set this to say 600000 (=10
minutes)
* A should allow incoming traffic from most everywhere (if I understand the
option correctly)
* D should allow you to to have multiple viewers at the same time (again,
if I understand the option correctly)

I doubt there is need for an OUT as you will only want to make a connection
from outside your LAN (that is : the internet) to a pc inside your LAN.

You now should be able to test this from a pc on the internet connecting to
: YOUR.CABLE.MODEM.IPADDRESS:0, syage should pass the packets received to
your vnc server on 192.168.0.2 and all should be well :)

If you have several vnc servers on you lan you might want to enter more
lines like this :

:INIT "VNC Server 192.268.0.3"
IN	TCP	5901 5901	192.167.0.3	5900	0	AD
:END

:INIT "VNC Server 192.268.0.4"
IN	TCP	5902 5902	192.167.0.4	5900	0	AD
:END

to which you should be able to connect using : 
YOUR.CABLE.MODEM.IPADDRESS:1 (goes to port 5901, thus vnc server on
192.168.0.3:0)
YOUR.CABLE.MODEM.IPADDRESS:2 (goes to port 5902, thus vnc server on
192.168.0.4:0)

BTW supposing these ports are already taken for some reason, you might want
to try this :


:INIT "VNC Server 192.268.0.2 via 61654"
IN	TCP	61654 61654	192.167.0.2	5900	0	AD
:END

and connect to 

YOUR.CABLE.MODEM.IPADDRESS:61654 (port will be redirected to 5900 anyway ,
thus vnc server on 192.168.0.2:0)


If you are on ICQ and need help / have feedback : find me at #35631302

>2. If I were sharing an Internet Connection with a cable mode using Linux
>has a user, and sharing the connection using ip forwarding, how would I
>access my client <win95/98> machines using VNC?

No idea, but I suppose the same method is valid...

Cu
Roby.


---------------------------------------------------------------------
The VNC mailing list - see http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------