Benches Networking

7

Guidance for configuring VPN when using a dynam...

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I'm interested to know if there are any suggestions or guidance for how to configure VPN to work properly with DYNDNS.com.

I have a DYNDNS account pointing to my server (example.dyndns.org) and it resolves to my public IP address. Internal to my network, the server has another name (server4.example.org), which as far as I can tell, only affects what the clients see within my network.

The server is not running any other features that need a static IP address or doing any other "public" things (mail, web, etc.). It is meant for internal use only, with the one additional aspect of hosting VPN sessions for our workers that are on the road.

7 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I did it by turning on and configuring VPN on the server (make sure Ip ranges dont fall within any used or DHCP ranges). I then just forwarded the VPN ports on my router to look at my server. (can remember ports to hand but just look up what ports PPTP and L2TP use)

    Usernames and passwords are driven from your server. so i basically connect to my dyndns name witha server username and password and voila, VPN access.

    I hope that makes sense.

    W

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    On the server, under VPN options, there is the ability to create a VPN configuration file to give out to the mobile workers. When I inspected that file with X-Code, in it's contents it stated the "internal" name of the server, not the "external" name that my mobile users would resolve the server with.

    Did you edit this file, or did you bypass the step of using a configuration file, and just configure VPN manually from the client?

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I've done the exact steps that Warren suggest but I still have no success either to connect to VPN.

    Strangely I can connect to VNC and manage my server from there but I can't share files from the internet with the use of AFP either. If this could be a clue when I try to connect to AFP with my "no-ip" address, I only reach the time capsule the server is connected to. My NAT settings and my ports forward to the address of the server, I really can't identify the problem.

    Can't wait to find out if someone can help us with this.

  4. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I didn't use those scripts i did it manually. try this website for a good guide to setting up VPN connections client side

    http://www.publicvpn.com/support/index.php

    Can you access your router WAN side?
    Can you VNC to your server WAN side? (or any other service for that matter)

    Also when a VPN tunnel is opened you will have to connect to the server via the LAN Ip address.

    What manages the VPN, server or router?

    Its one of those things thats easy when your there but hard to write down.

    Hope this helps though

  5. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Broc

    When you say connect to VNC do you mean WAN side?

    ill list me settings to see if that helps

    I have forwarded the following ports on my router to the LAN Ip of my server: 500, 1701, 1723 & 4500. (Also 21 for FTP; 3283 and 5900 for ARD; 22024 for Retrospect)

    LAN Ip setup as follows:

    DHCP Pool - 192.168.1.2 - 99

    Fixed IP addresses:
    Router - 192.168.1.1
    Timecapsule storage - 192.168.1.100
    HP Printer - 192.168.1.101
    OKI Printer - 192.168.1.102
    Xserver & DNS - 192.168.1.253
    L2TP VPN Pool - 192.168.1.243 - 248
    PPTP VPN Pool - 192.168.1.248 - 252

    On this particular xserve im running 10.5.7 and here is a link to my setup screens:

    http://www.a-creative.co.uk/uts/vpn/picture-1.jpg
    http://www.a-creative.co.uk/uts/vpn/picture-2.jpg
    http://www.a-creative.co.uk/uts/vpn/picture-3.jpg
    http://www.a-creative.co.uk/uts/vpn/picture-4.jpg

    Dunno if that helps.

    W

  6. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Configuring manually did in fact resolve the issue.

  7. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hey there!

    Thanks a lot for the help.

    I have resumed trying to get this to work without any success...

    First, what do you mean when you say forward ports on your router to the ip of your server? I don't know how to do this. Do I use the "public" vs "private" UDP and TCP adresses in the port forwarding options in airport utility?

    I set my DHCP pool to match yours.

    I don't know how to fix IP addresses like you did. However, I know how to set my VPN pool. I used the same pool as you (using different numbers for the first three ones to match my own setup).

    Problem stays the same. I can connect to AFP and VPN with no problems while connected to my router (Time Capsule) but can't when using the internet away from home.

    I read a few tutorials on VPN and all seems to be setup exactly as it should.

    My server might as well be used as a paper weight...

    Thanks for the help, don't hesitate if you have any other idea.