For PPTP VPN connections, you need to open TCP port 1723 (for PPTP tunnel Port 47 is designed for "General Routing Encapsulation" or GRE packets.
For L2TPVPN connections, you need to open UDP port 500 for Internet more...
D-Link AirPlus Xtreme G DI-624 Wireless... - Troubleshooting