Creating a VPN Server with D-Link DIR-842 and PFsense 2.4.4-RELEASE-p1 (amd64) for Windows 10, Android, MAC and iPhone Remote Users

Network Diagram

D-LINK Configuration | Screenshots

Screenshot from the D-Link admin page (Router Graphical User Interface)
Inside D-Link admin page, go to “Features” and select “Port Forwarding”.
Open the ports of IPSec for the PFsense firewall port 192.168.1.109.
UDP Port 500 and 4500.

pfsense Configuration |
Certificate Authority (CA)

pfsense Configuration |
VPN / IPsec / Mobile Clients

pfsense Configuration |
VPN / IPsec / Tunnels

After VPN Configurations, VPN > Tunnels page will look like this:

pfsense Configuration |
Firewall > Rules


Remote User Configuration |
Windows 10

Download first the crt file from pfsense and send to the remote user.
This cert file will be needed to be Installed in the user’s terminal.




* After distributing the crt file from pfsense to the remote users, share the instructions below regarding the installation of the certificate and the creation of VPN connection.

Import the CA to a Windows 10 Remote User PC

  • Export the CA Certificate from pfSense® and download or copy it to the client PC:
    • Navigate to System > Cert ManagerCertificate Authorities tab on pfSense
    • Click fa-certificate by the CA to download only the certificate
  • Locate the downloaded file on the client PC (e.g. VPNCA.crt) as seen in Figure Downloaded CA Certificate

../_images/ipsec-mobile-ikev2-windows-01-cert.png

Downloaded CA Certificate

../_images/ipsec-mobile-ikev2-windows-02-certinstall.png

Certificate Properties

../_images/ipsec-mobile-ikev2-windows-03-certlocalmachine.png

Certificate Import Wizard – Store Location

../_images/ipsec-mobile-ikev2-windows-04-certstore.png

Certificate Import Wizard – Browse for the Store

../_images/ipsec-mobile-ikev2-windows-05-certstoreselect.png

Select Certificate Store

../_images/ipsec-mobile-ikev2-windows-06-certfinish.png

Completing the Certificate Import Wizard

  • Click Finish
  • Click OK
  • Click OK




Setup VPN Connection in Windows 10 Remote User




Setup VPN Connection in an Android Remote User