VPN / Remote desktop using TightVNC

I'd like to set this up so I can connect to my server from a Windows XP machine at work. I've setup PPTP and LPT2 on my server, but am not sure which ports to open on my firewall to make the connection. Some documentation says 1701 and 500, some says 50, some says 1723. I know I'm getting hung up at my firewall because I've got web services, FTP, and a camera all working with no problems. Anyone know which ones and the best method for testing when I don't have access to the server? Thanks.

MacBook, Mac OS X (10.5)

Posted on Nov 14, 2007 10:48 AM

Reply
2 replies

Nov 14, 2007 11:32 AM in response to Leslie Gordon

L2TP : UDP ports 500 and 4500 and protocol (number 50) ESP if both server and client has a public IP
If server is behind NAT you only need the UDP ports (UDP port 1701 not neccessary).

PPTP : TCP port 1723 and the GRE protocol (with some routers VPN passthrough does the GRE "bit")
All routers on the way need to support VPN passthrough.




Notice the difference between UDP/TCP port numbers and protocols like GRE and ESP.
All protocols are numbered too like 50 for ESP, 6 for TCP and 17 for UDP (and I think GRE is 47?) but you don't really enter those numbers anywhere like with UDP/TCP port numbers.



Also if the server is directly connected to Internet with a public IP and doing the firewalling you must use a second IP on the server to connect to services on the server through the VPN. This IP must be accessible from the VPN and services you want to use not "firewalled off".

So if VNC is on but firewalled off on the main IP (where you also connect the VPN to) the second IP (on the server LAN interface or an alias interface/IP) must be open for VNC access.

If you have a router/firewall between your server and Internet only the VPN ports need to be open and forwarded to the server LAN IP. The rest is accessible through the VPN (if no firewall is running on the server and depending on it's configuration if it is).

Message was edited by: Leif Carlsson

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

VPN / Remote desktop using TightVNC

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.