Professional Documents
Culture Documents
Howto Tunnel VNC
Howto Tunnel VNC
txt
HowTo for BarracudaDrive, goto http://barracudaserver.com/products/HomeServer/
You can use any flavour of VNC, but I recommend to use UltraVNC (
http://www.uvnc.com ), because UltraVNC offers also a VNC
proxy (called repeater) that allows you in a easy way to login into multiple PCs
separately).
At first you must configure your tunnel. Your tunnel shall be always configured
asymmetric to avoid conflicting ports on
the client side. The tunnel will consist of "2 tunnels" ! This means set the
Page 1
howto_tunnel_vnc.txt
yourdomain.com = your domain name at home or your IP adress of your homerouter
(you must forward port 443 on your home router to your BD server)
first tunnel for VNC direct connection to server:
55900:localhost:5900 = the port 55900 is the entry point of your tunnel at your
work PC and localhost in this case is your home PC and 5900 is on your home PC
the exitpoint of your tunnel and will connect to your VNC server at port 5900.
second tunnel for VNC connection via VNC proxy (VNC repeater):
55901:localhost:5901 = the port 55901 is the entry point of your tunnel at your
work PC and localhost in this case is your home PC and 5901 is on your home PC
the exitpoint of your tunnel and will connect to your VNC proxy (VNC repeater) on
port 5901.
You have to configure the tunnel database. Create a rule:
called: tunnel_VNC
/localhost/5900/
/127.0.0.1/5900/
/localhost/5901/
/127.0.0.1/5901/
I assume you only want to give yourself, the admin the permission to use this
latest version, at the moment 1.0.2)) , this will install server and also the
viewer (client) and additional install the video driver on your BD server at
When installed run: install as service, click also install video driver and run
VNC server and configure a password. Use only a maximum of 8 characters for
password to keep it compatible with other viewer versions of VNC.
Right click on Ultra VNC server icon in taskbar and select properties, check for
the video driver and make checkmark to use video driver.
All the configuration, also config for Administrator in VNC keep as default.
Then click in menu install Ultra VNC repeater as a service. Right click on
Ultra VNC repeater icon in taskbar and select Settings, make sure under
accept it says port 5901, we will not use the listen port, dont change the
default listen port.
Page 2
howto_tunnel_vnc.txt
c:\Program Files\UltraVNC\ (when installed with defaults)
the file vncviewer.exe to your USB stick, the viewer is a portable program, to be
used for remote access from your work PC.
Now how to use it:
USB stick on your work PC, start at first the tunnel, with link from
http://barracudaserver.com/examples/BarracudaDrive/HttpsTunnel/index.html
or download the jarfile and start from commandline. (as explained above)
java -jar httpsTunnel.jar -ssl companyproxy.com:8080 yourdomain.com
55900:localhost:5900 55901:localhost:5901
When tunnel is open start your vncviewer from your USB stick.
When you want to connect directly to your BD server:
key in under VNC server localhost::55900 (you need 2 colons ! when you use
localhost on port 55900 will connect to your entrypoint of your tunnel at the
If you have multiple PC on your home network, you use the repaeter:
key in under VNC server homeserverIPadress (for example 192.168.0.12 and no port
number (it will use default 5900)
and now mark the checkmark for repeater and key in under repeater
Page 3