Discussion:
VNC and Firewall - which ports to open?
Marcus Lager
2004-10-18 14:19:00 UTC
Permalink
I have a Netscreen NS5XT firewall. If I allow all ports to my server, which
is behind the firewall, the VNC connection works. If I allow only TCP ports
5801, 5901 and 5501 the connections fails. According to the documentation
these ports are the only ones I should open.

VNC runs as a service and I4ve mapped an ip address to the server, which I
guess is called "putting the server in the DMZ" in networking language. And
while all ports are open it works fine. But that4s not very safe, is it?

Marcus
Jerome R. Westrick
2004-10-18 14:52:01 UTC
Permalink
Post by Marcus Lager
I have a Netscreen NS5XT firewall. If I allow all ports to my server, which
is behind the firewall, the VNC connection works. If I allow only TCP ports
5801, 5901 and 5501 the connections fails. According to the documentation
these ports are the only ones I should open.
Theese ports assume you are using display ":1" (accessed via command:
"vncviewer machine:1"). Is that the case?

If you use the command "vncviewer machine" (without the :1) the you
would need to redirect the ports 5800, 5900, and 5500 (without the
+1)...

Jerry
P.S. The ports 5800 (+displayno), are used for downloading the java
applet into your browser, if you don't use browser access you don't need
to redirect this port...

P.P.S. The ports 5500 (+displayno), are used for "reverse" connections,
that is when the vncserver does "Add client", and connects to a
vncviewer in "Listen mode". Therefore this one used diferentely as the
vncserver connections and therefore is usually configured diferent to
the vncserver. Adding this port to your "General vncserver port config
list" will really create confusion...
Post by Marcus Lager
VNC runs as a service and I4ve mapped an ip address to the server, which I
guess is called "putting the server in the DMZ" in networking language. And
while all ports are open it works fine. But that4s not very safe, is it?
Marcus
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
Marcus Lager
2004-10-18 18:26:01 UTC
Permalink
"Theese ports assume you are using display ":1" (accessed via command:
"vncviewer machine:1"). Is that the case? "

- No, I don4t believe I am. I4m running VNC as a service on the server and
clients connect by using the VNC viewer and stating the mapped IP address
and the password I set up using VNC 3.3 authentication.

So I guess i only need to worry about TCP port 5900 then? Well, when
allowing only this port in my firewall I cannot connect. When I allow trafic
on all ports I connect without problems.

/Marcus

-----Ursprungligt meddelande-----
Fren: vnc-list-***@realvnc.com [mailto:vnc-list-***@realvnc.com]Fvr
Jerome R. Westrick
Skickat: den 18 oktober 2004 10:51
Till: vnc-***@realvnc.com
Dmne: Re: VNC and Firewall - which ports to open?
Post by Marcus Lager
I have a Netscreen NS5XT firewall. If I allow all ports to my server,
which
Post by Marcus Lager
is behind the firewall, the VNC connection works. If I allow only TCP
ports
Post by Marcus Lager
5801, 5901 and 5501 the connections fails. According to the documentation
these ports are the only ones I should open.
Theese ports assume you are using display ":1" (accessed via command:
"vncviewer machine:1"). Is that the case?

If you use the command "vncviewer machine" (without the :1) the you
would need to redirect the ports 5800, 5900, and 5500 (without the
+1)...

Jerry
P.S. The ports 5800 (+displayno), are used for downloading the java
applet into your browser, if you don't use browser access you don't need
to redirect this port...

P.P.S. The ports 5500 (+displayno), are used for "reverse" connections,
that is when the vncserver does "Add client", and connects to a
vncviewer in "Listen mode". Therefore this one used diferentely as the
vncserver connections and therefore is usually configured diferent to
the vncserver. Adding this port to your "General vncserver port config
list" will really create confusion...
Post by Marcus Lager
VNC runs as a service and I4ve mapped an ip address to the server, which I
guess is called "putting the server in the DMZ" in networking language.
And
Post by Marcus Lager
while all ports are open it works fine. But that4s not very safe, is it?
Marcus
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
Jerome R. Westrick
2004-10-18 18:44:01 UTC
Permalink
Post by Marcus Lager
"vncviewer machine:1"). Is that the case? "
- No, I don4t believe I am. I4m running VNC as a service on the server and
clients connect by using the VNC viewer and stating the mapped IP address
and the password I set up using VNC 3.3 authentication.
So I guess i only need to worry about TCP port 5900 then?
Okay, that is correct if you only use IP-address then you are using the
default ( :0 ) ie. 5900.
Post by Marcus Lager
Well, when
allowing only this port in my firewall I cannot connect. When I allow trafic
on all ports I connect without problems.
It seams to be your firewall settings then...
They don't seam to work, you got a log in which you can see if the
firewall is blocking port 5900?

Jerry
Post by Marcus Lager
/Marcus
-----Ursprungligt meddelande-----
Jerome R. Westrick
Skickat: den 18 oktober 2004 10:51
Dmne: Re: VNC and Firewall - which ports to open?
Post by Marcus Lager
I have a Netscreen NS5XT firewall. If I allow all ports to my server,
which
Post by Marcus Lager
is behind the firewall, the VNC connection works. If I allow only TCP
ports
Post by Marcus Lager
5801, 5901 and 5501 the connections fails. According to the documentation
these ports are the only ones I should open.
"vncviewer machine:1"). Is that the case?
If you use the command "vncviewer machine" (without the :1) the you
would need to redirect the ports 5800, 5900, and 5500 (without the
+1)...
Jerry
P.S. The ports 5800 (+displayno), are used for downloading the java
applet into your browser, if you don't use browser access you don't need
to redirect this port...
P.P.S. The ports 5500 (+displayno), are used for "reverse" connections,
that is when the vncserver does "Add client", and connects to a
vncviewer in "Listen mode". Therefore this one used diferentely as the
vncserver connections and therefore is usually configured diferent to
the vncserver. Adding this port to your "General vncserver port config
list" will really create confusion...
Post by Marcus Lager
VNC runs as a service and I4ve mapped an ip address to the server, which I
guess is called "putting the server in the DMZ" in networking language.
And
Post by Marcus Lager
while all ports are open it works fine. But that4s not very safe, is it?
Marcus
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
Angelo Sarto
2004-10-18 22:05:01 UTC
Permalink
Possibly, you have the port "open" and not redirected.

You need a port forward of 5900 to your local machine if your firewall
is doing PAT/NAT.
(i.e. you have only one public IP shared for many computers)

Simply Opening 5900 will prolly route the packet into the bit bucket.

??
--Angelo


On Mon, 18 Oct 2004 14:43:39 +0200, Jerome R. Westrick
Post by Jerome R. Westrick
Post by Marcus Lager
"vncviewer machine:1"). Is that the case? "
- No, I don4t believe I am. I4m running VNC as a service on the server and
clients connect by using the VNC viewer and stating the mapped IP address
and the password I set up using VNC 3.3 authentication.
So I guess i only need to worry about TCP port 5900 then?
Okay, that is correct if you only use IP-address then you are using the
default ( :0 ) ie. 5900.
Post by Marcus Lager
Well, when
allowing only this port in my firewall I cannot connect. When I allow trafic
on all ports I connect without problems.
It seams to be your firewall settings then...
They don't seam to work, you got a log in which you can see if the
firewall is blocking port 5900?
Jerry
Post by Marcus Lager
/Marcus
-----Ursprungligt meddelande-----
Jerome R. Westrick
Skickat: den 18 oktober 2004 10:51
Dmne: Re: VNC and Firewall - which ports to open?
Post by Marcus Lager
I have a Netscreen NS5XT firewall. If I allow all ports to my server,
which
Post by Marcus Lager
is behind the firewall, the VNC connection works. If I allow only TCP
ports
Post by Marcus Lager
5801, 5901 and 5501 the connections fails. According to the documentation
these ports are the only ones I should open.
"vncviewer machine:1"). Is that the case?
If you use the command "vncviewer machine" (without the :1) the you
would need to redirect the ports 5800, 5900, and 5500 (without the
+1)...
Jerry
P.S. The ports 5800 (+displayno), are used for downloading the java
applet into your browser, if you don't use browser access you don't need
to redirect this port...
P.P.S. The ports 5500 (+displayno), are used for "reverse" connections,
that is when the vncserver does "Add client", and connects to a
vncviewer in "Listen mode". Therefore this one used diferentely as the
vncserver connections and therefore is usually configured diferent to
the vncserver. Adding this port to your "General vncserver port config
list" will really create confusion...
Post by Marcus Lager
VNC runs as a service and I4ve mapped an ip address to the server, which I
guess is called "putting the server in the DMZ" in networking language.
And
Post by Marcus Lager
while all ports are open it works fine. But that4s not very safe, is it?
Marcus
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
Marcus Lager
2004-10-19 13:38:01 UTC
Permalink
We have several public IP addresses. We all use one and the same when we are
surfing the net, but for VNC I have used another, different IP address. This
public IP address is mapped to the local IP address of one of my LAN
servers, which runs VNC as a service. It works when I open all ports (allow
any type of protocoll) but when I open only port 5900 it does not work.
Maybe I?m not configuring my firewall correctly, as was suggested by Jerry.

-----Ursprungligt meddelande-----
Fran: vnc-list-***@realvnc.com [mailto:vnc-list-***@realvnc.com]For
Angelo Sarto
Skickat: den 18 oktober 2004 18:04
Till: Jerome R. Westrick
Kopia: vnc-***@realvnc.com
Amne: Re: SV: VNC and Firewall - which ports to open?


Possibly, you have the port "open" and not redirected.

You need a port forward of 5900 to your local machine if your firewall
is doing PAT/NAT.
(i.e. you have only one public IP shared for many computers)

Simply Opening 5900 will prolly route the packet into the bit bucket.

??
--Angelo


On Mon, 18 Oct 2004 14:43:39 +0200, Jerome R. Westrick
Post by Jerome R. Westrick
Post by Marcus Lager
"vncviewer machine:1"). Is that the case? "
- No, I don4t believe I am. I4m running VNC as a service on the server
and
Post by Jerome R. Westrick
Post by Marcus Lager
clients connect by using the VNC viewer and stating the mapped IP
address
Post by Jerome R. Westrick
Post by Marcus Lager
and the password I set up using VNC 3.3 authentication.
So I guess i only need to worry about TCP port 5900 then?
Okay, that is correct if you only use IP-address then you are using the
default ( :0 ) ie. 5900.
Post by Marcus Lager
Well, when
allowing only this port in my firewall I cannot connect. When I allow
trafic
Post by Jerome R. Westrick
Post by Marcus Lager
on all ports I connect without problems.
It seams to be your firewall settings then...
They don't seam to work, you got a log in which you can see if the
firewall is blocking port 5900?
Jerry
Post by Marcus Lager
/Marcus
-----Ursprungligt meddelande-----
Jerome R. Westrick
Skickat: den 18 oktober 2004 10:51
Dmne: Re: VNC and Firewall - which ports to open?
Post by Marcus Lager
I have a Netscreen NS5XT firewall. If I allow all ports to my server,
which
Post by Marcus Lager
is behind the firewall, the VNC connection works. If I allow only TCP
ports
Post by Marcus Lager
5801, 5901 and 5501 the connections fails. According to the
documentation
Post by Jerome R. Westrick
Post by Marcus Lager
Post by Marcus Lager
these ports are the only ones I should open.
"vncviewer machine:1"). Is that the case?
If you use the command "vncviewer machine" (without the :1) the you
would need to redirect the ports 5800, 5900, and 5500 (without the
+1)...
Jerry
P.S. The ports 5800 (+displayno), are used for downloading the java
applet into your browser, if you don't use browser access you don't need
to redirect this port...
P.P.S. The ports 5500 (+displayno), are used for "reverse" connections,
that is when the vncserver does "Add client", and connects to a
vncviewer in "Listen mode". Therefore this one used diferentely as the
vncserver connections and therefore is usually configured diferent to
the vncserver. Adding this port to your "General vncserver port config
list" will really create confusion...
Post by Marcus Lager
VNC runs as a service and I4ve mapped an ip address to the server,
which I
Post by Jerome R. Westrick
Post by Marcus Lager
Post by Marcus Lager
guess is called "putting the server in the DMZ" in networking
language.
Post by Jerome R. Westrick
Post by Marcus Lager
And
Post by Marcus Lager
while all ports are open it works fine. But that4s not very safe, is
it?
Post by Jerome R. Westrick
Post by Marcus Lager
Post by Marcus Lager
Marcus
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
Continue reading on narkive:
Loading...