PfSense OpenVPN Configuration Step by Step

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi robert here have you ever been away from home but need access to files on a home pc a media server or check on security cameras that you don't normally have internet access to or you're in another country you'd like to catch up with programs on your favorite on-demand streaming service if you answered yes to any of these then you need a vpn service so today i'm going to be showing you how to set up vpn on pfsense 2.5.1 and how to connect this vpn service with your mobile phone tablet or pc pfsense supports three different types of vpn connection ipsec l2tp and openvpn today i'll be configuring an openvpn server with authentication done using username password and an ssl tls certificate this is one of the most basic and easiest ways to set up a vpn connection into your home network so if you're ready let's get started let's log in to the pfsense interface the default ip address is 192.168.1.1 and then go to system search manager under cis click on the green add button give it a descriptive name method create an internal certificate authority everything else here can stay the same that's the common name we'll change that to pfsense hyphen ca country code my case it's gb enter your state and your city and your organization and then click save let's go to certificates click on add sign method is create an internal certificate the descriptive name we'll call openvpn hyphen server the certificate authority is pfsense everything else here can stay the same common name we'll also call open vpn hyphen server again all these details can stay the same apart from this one here certificate type i need to change that from user certificate to server certificate and then click save now back up to system and user manager under users click on the green add button choose a username and then choose a password and repeat that password and enter the user's name all this can stay the same apart from this item here so certificate click on the check box that says click to create a user certificate the descriptive name we'll also call that joe blogs leave all these details the same and click save next we go back to system and then package manager click on available packages then type in open vpn and click the blue search button under the packages you'll see open vpn client export click on the green install button and then the green confirm button as most home broadband connections are assigned a dynamic ip address to make sure that we can always connect up to our pf sense box we'll sign up with a free dynamic dns service this means that we can connect up using the domain name that will always have the ip address associated with our pf sense box updated whenever it changes so go to noip dot com forward slash free to sign up for an account once you've set up your account return to pfsense to continue the setup next we need to go to the services tab and then down to dynamic dns click on the green add button and under the service type choose noip free interface to monitor is the one interface the hostname is the name that you set up on noip.com and then enter your knowip.com username and password and repeat that password and enter a description if you wish and then click save so here you can see the host name and the ip address that that host name is tied to and this will be updated whenever the ip address changes now go to the vpn tab and select open vpn click on client export the remote access server can stay as it is as it's the only one we've got hostname resolution change this from the interface ip address to the domain that you set up on noip.com click on block outside dns so all dns queries go through your vpn connection then you go down to the client so we've got joe blogs here so we're going to select the openvpn connection which will be used on an android phone next we need to scroll to the top of the page back to the home page and then on the status dashboard click on the plus sign and go to openvpn and click on that you will then see this vpn option here what this will do is when you connect it with your phone tablet pc you will see the connection here now that we've created the configuration file we need to get it copied across to the phone tablet or pc there's various different ways of doing this but for simplicity and for this tutorial i'm just going to email the file to myself this isn't best practice as far as a security point of view but as i say this is purely for this tutorial so if you just go into your email program just put in the email address of the person that you want to send the file to which is likely to be yourself in a subject and then attach the configuration file and send it now on your mobile device go into your email go to the email with the configuration file and download the configuration file next go to the google play store and search for open vpn and then click install once installed click on open you've got the open vpn inc data collection use and retention policy so if you scroll down and then click agree next go to the option that says file when it asks allow openvpn connect to access photos media and files on your device click allow and then go to downloads unlike the ovpn configuration file and click import next enter the username for the vpn connection and click add then click the switch to connect to vpn and enter the password you'll get a connection request openvpn wants to set up a vpn connection that allows it to monitor network traffic only except if you trust the source so click ok and then the vpn connection is active we just scroll down a little you can see the user is you and it's joe blogs in this case your private ip address is the ip address that's assigned to the vpn connection the server is the the dns name to your external ip address of your pf sense router and the external ip address is the actual address as you can see when this is connected you can then see it on pfsense dashboard and you can see when it's connected so if we just disconnect nil and then after a few seconds you'll see it disappear from the dashboard on pf sense okay that's it this is pretty much the most basic form of openvpn connection but it will let you access your home resources and allow you to tunnel through your home network so you can appear as if you are at home even when you are abroad which is necessary for some streaming services if you find this video useful please give it a thumbs up subscribe and click the bell icon to receive notifications when i upload new content until next time thanks for watching
Info
Channel: Robert Sloan
Views: 2,193
Rating: 4.8461537 out of 5
Keywords: PfSense, PfSense 2.5, PfSense 2.5.1, OpenVPN, PfSense OpenVPN, VPN, PfSense VPN setup, PfSense VPN Configuration, PfSense VPN Connection, pfsense openvpn configuration step by step, Configure openvpn step by step from scratch in pfsense, Configuring OPENVPN on pfsense, Complete Setup of OpenVPN on Pfsense Firewall, Install OpenVPN on pfSense - The Complete Step-by-Step Guide
Id: Ll6fYuBKbpY
Channel Id: undefined
Length: 11min 25sec (685 seconds)
Published: Sat May 29 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.