I'm configuring a Mac as a server with a VPN service. So, I opened the ports listed as used by VPN in Apple documentation:
- UDP 500 -> 500 (+ESP and AH)
- UDP 4500 -> 4500
- Any UDP -> 1701
(I got to these configs setup by the router wizard to setup the VPN ports)
Now, problem number 1: I cannot connect to my VPN. However, but if I set a new rule of Any UDP -> Any UDP (so, every connection to my IP) I can successfully connect to the network. For obvious reasons, I don't want to have all ports available.
Problem number 2: Even though with the Any UDP -> Any UDP rule I can connect to the VPN, the OS X server says "Reachability unknown". But if I setup a rule Any TCP -> Any TCP then it says properly that the VPN is reachable. For obvious reasons, I don't want to have this ruler either.
So, my question is: what ports or configuration am I missing?
For what its worth: I'm using an Hitron BVW3653 (provided by my ISP).
UPDATE
I now setup the port forwarding to:
- UDP 500 -> 500 (+ESP and AH)
- UDP 4500 -> 4500
- UDP 1701 -> 1701
But the issue remains. As a side note, I can connect to the VPN if I'm in my local network so the server setup seems to be correct, it is just the port forwarding that is not working. Here's the current configuration I have so far (server is with static ip 192.168.1.200):