HI ALL, I searched the mailing list and I found 5800 and 5900 are the ports for VNC. However, I tried set it up with the following rule, but not working. Any ideas? DNAT net loc:10.0.0.1 tcp 5800 DNAT net loc:10.0.0.1 tcp 5900 Thanks!
--On Friday, December 20, 2002 03:41:57 PM -0700 Luke Chong <lchong@edm.trlabs.ca> wrote:> HI ALL, > > I searched the mailing list and I found 5800 and 5900 are the ports for > VNC. However, I tried set it up with the following rule, but not > working. Any ideas? > > DNAT net loc:10.0.0.1 tcp 5800 > DNAT net loc:10.0.0.1 tcp 5900 >Have you tried the troubleshooting procedure outlined in FAQ 1b? -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net
> -----Original Message----- > From: Luke Chong > Sent: Friday, December 20, 2002 4:42 PM > Subject: [Shorewall-users] VNC port number?? > > > HI ALL, > > I searched the mailing list and I found 5800 and 5900 are the > ports for VNC. However, I tried set it up with the following > rule, but not working. Any ideas? > > DNAT net loc:10.0.0.1 tcp 5800 > DNAT net loc:10.0.0.1 tcp 5900If you start your vnc server session with display :0, then the corresponding ports would be 5800,5900. Display :1 would translate to 5801,5901,etc... Type: ps auwwx | grep Xvnc to find your vnc server display and ports. This is also documented in the vncserver/Xvnc man pages. Steve Cowles
VNC uses 5900 for display 0, 5901 for display 1, etc. so if your display is :1 then you need 5901 instead of 5900. -Paul On Fri, 20 Dec 2002 15:41:57 -0700 (MST) Luke Chong <lchong@edm.trlabs.ca> opened up to us and said:> HI ALL, > > I searched the mailing list and I found 5800 and 5900 are the ports > for VNC. However, I tried set it up with the following rule, but not > working. Any ideas? > > DNAT net loc:10.0.0.1 tcp 5800 > DNAT net loc:10.0.0.1 tcp 5900 > > Thanks! > > > _______________________________________________ > Shorewall-users mailing list > Shorewall-users@shorewall.net > http://www.shorewall.net/mailman/listinfo/shorewall-users-- Paul Slinski System Administrator Global IQX http://www.globaliqx.com/ pauls@globaliqx.com