{"id":18612,"date":"2020-03-25T15:55:11","date_gmt":"2020-03-25T15:55:11","guid":{"rendered":"https:\/\/made4it.com.br\/blog\/creating-vpn-using-pfsense-and-openvpn\/"},"modified":"2026-06-29T19:40:13","modified_gmt":"2026-06-29T19:40:13","slug":"creating-vpn-using-pfsense-and-openvpn","status":"publish","type":"post","link":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/","title":{"rendered":"Creating VPN using PFSense and OpenVPN"},"content":{"rendered":"\n<p>Hello everyone!&nbsp;<\/p>\n<p>In our <a href=\"https:\/\/made4it.com.br\/en\/blog\/installation-of-pfsense-as-your-networks-gateway\/\">last article<\/a> we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you need to. <\/p>\n\n<h2 style=\"text-align: left;\">What is a VPN?<\/h2>\n\n<p>Basically, VPN stands for Virtual Private Network, and it serves as a tunnel between two connection points.<\/p>\n<p>When you set up a VPN between a computer at your home and a PFsense at your company, for example, the tunnel created allows your computer to act as if it were \u201cinside\u201d your company\u2019s local network, granting access to servers and equipment, provided that the PFsense is reachable from your home computer.<\/p>\n<p>Now that we understand what VPN is all about, let&#8217;s learn how to set it up using PFSense to establish the connection between your different networks.<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/wa.me\/5543988477972?text=Ol%C3%A1,%20gostaria%20de%20ajuda%20para%20configurar%20o%20PFSense.\" target=\"_blank\" rel=\"noopener\"><img fetchpriority=\"high\" decoding=\"async\" width=\"728\" height=\"90\" src=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/04\/banner.jpg\" alt=\"\" class=\"wp-image-12122\" style=\"width:839px;height:104px\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/04\/banner.jpg 728w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/04\/banner-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/figure>\n\n<h2>Configuring the VPN<\/h2>\n\n<p>We&#8217;ll use PFSense&#8217;s built-in &#8220;Wizard&#8221; for this configuration. To do this, go to the <em><strong>VPN > OpenVPN<\/strong><\/em>. Then, click the <em><strong>Wizards<\/strong><\/em>tab:  <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/1-1-1024x201.png\" alt=\"\" class=\"wp-image-1183\"\/><figcaption class=\"wp-element-caption\">To create the VPN, go to VPN &gt; OpenVPN &gt; Wizards.<\/figcaption><\/figure>\n\n<p>When we access the Wizard, we will select the<strong>&#8216;Type of Server<\/strong>&#8216;, as<strong>&#8216;Local User Access<\/strong>&#8216;, and we can click on &#8216;<em>\n  <strong>Next<\/strong>\n<\/em>&#8216;.<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/2-1024x359.png\" alt=\"\" class=\"wp-image-1184\"\/><figcaption class=\"wp-element-caption\">Here we change the Type of Server and move on.<\/figcaption><\/figure>\n\n<p>On the next screen you need to create a new Certificate Authority (Cerfificate Authority, or CA), by filling out the following fields:<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/3-1024x566.png\" alt=\"\" class=\"wp-image-1185\"\/><figcaption class=\"wp-element-caption\">Remember to change the location fields to suit your needs.<\/figcaption><\/figure>\n\n<p>We will use the name: <em><strong>VPN_CA<\/strong><\/em>, indicating that this CA is used for the VPN. Next, we\u2019ll specify the size of the encryption key that will be generated. A value of <em><strong>2048<\/strong><\/em> bits is sufficient.<br\/>The rest can be filled in according to your <em><strong>Country, State, City, and Organization<\/strong><\/em> (or company).  <\/p>\n\n<figure class=\"wp-block-image\"><img alt=\"\">The next step is to create a server certificate. To do this, simply select the option to create a new certificate and fill in the fields as shown in the image (changing the location values again): <\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/4-1024x516.png\" alt=\"\" class=\"wp-image-1187\"\/><figcaption class=\"wp-element-caption\">Very similar to the previous one, this is the Server Certificate, not the Certificate Authority, but the settings will remain the same.<\/figcaption><\/figure>\n\n<p>Now that we&#8217;ve finished setting up the server certificate, let&#8217;s configure the VPN access settings. To do this, we&#8217;ll select the access interface\u2014in our case, the <em><strong>WAN<\/strong><\/em>. Then, we\u2019ll fill in the rest of the information. I\u2019ll be using the <em><strong>UDP only<\/strong><\/em>, on port <em><strong>1194<\/strong><\/em> and with the description &#8216;<em><strong>VPN<\/strong><\/em>&#8216;.   <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/5-1024x328.png\" alt=\"\" class=\"wp-image-1188\"\/><figcaption class=\"wp-element-caption\">Configuration that we will use, related to the port and protocol of our tunnel.<\/figcaption><\/figure>\n\n<p>On the same screen, you&#8217;ll find the encryption settings. In these options, we&#8217;ll <em><strong>enable TLS authentication and the automatic creation of a shared TLS key for authentication<\/strong><\/em>.<br\/>We can set the &#8216;<em><strong>DH<\/strong><\/em>&#8216; to <em><strong>2048<\/strong><\/em>, as is the default, and change the <em><strong>Encryption Algorithm<\/strong><\/em> to <em><strong>AES-256-CBC<\/strong><\/em>. Let\u2019s choose the <em><strong>Authentication Algorithm &#8216;SHA1 (160-bit)&#8217;<\/strong><\/em>. It is important that this setting be the same on both the server (PFsense) and the client (your machine).     <br>We have our configurations as follows:<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/6-1024x594.png\" alt=\"\" class=\"wp-image-1189\"\/><figcaption class=\"wp-element-caption\">Encryption Settings.<\/figcaption><\/figure>\n\n<p>In the next part we have the Tunnel settings.  <br>The first field refers to the IP pool that pfSense will use for its clients\u2014that is, the IP addresses that PCs connecting to the VPN will be assigned within the virtual network. In our case, we selected a \/24 block (256 IP addresses, with 254 hosts), which should be plenty. We chose the block <em><strong>10.20.50.0\/24<\/strong><\/em>.<br\/>Let\u2019s fill in the \u201c<em><strong>Local Network &#8216; field<\/strong><\/em>&#8216; field to specify the LAN network we\u2019re trying to access, so that pfSense can automatically create a route to that network. In our example, the network is <em><strong>192.168.1.0\/24<\/strong><\/em>.<br\/>We use the &#8216;<em><strong>Omit Preference<\/strong><\/em>&#8216; compression, and enable the &#8216;<em><strong>Inter-Client Communication<\/strong><\/em>&#8216; option if you want machines connected to the VPN to communicate with each other.<br\/>Currently, our settings are as follows:   <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/7-1024x588.png\" alt=\"\" class=\"wp-image-1190\"\/><figcaption class=\"wp-element-caption\">Network settings of our VPN tunnel.<\/figcaption><\/figure>\n\n<p>To complete the configuration, in the &#8216;<em><strong>Client Settings<\/strong><\/em>&#8216; field, you have the option to <em><strong>Dynamic IP enabled<\/strong><\/em>so that the connected IP addresses can change dynamically. In <em><strong>Topology<\/strong><\/em>, we select the <em><strong>Subnet<\/strong><\/em>option to have a \/24 subnet with IPs distributed within the block. If you want to isolate each client\u2019s subnet, you can use the net30 option, which assigns each client a separate \/30 subnet. Some older client versions require the \u201cnet30\u201d option to be selected, while others require \u201cSubnet.\u201d It\u2019s important to adapt your configuration to the client you\u2019ll be using.<br\/>After that, you have the option to choose the DNS server for this VPN connection. We\u2019ll leave the default <em><strong>Google\u2019s<\/strong><\/em> from Google and PFSense itself as the DNS servers.<br\/>The final settings are as shown in the image:     <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/8-1024x559.png\" alt=\"\" class=\"wp-image-1191\"\/><figcaption class=\"wp-element-caption\">Final configurations of our Client.<\/figcaption><\/figure>\n\n<p>On the next screen, we have the option to set up a firewall rule to allow connections from anywhere on the VPN, which we can <em><strong>enable<\/strong><\/em>, since OpenVPN uses certificates for the connection; without the certificate (which must be provided directly to the person connecting) and a username\/password, it is impossible to gain access to this network.<br\/>Just below that, the &#8216;<em><strong>OpenVPN rule<\/strong><\/em>&#8216; option, we can <em><strong>enable<\/strong><\/em>to allow all traffic from connected clients to pass through the VPN tunnel.<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/9-1024x400.png\" alt=\"\" class=\"wp-image-1192\"\/><figcaption class=\"wp-element-caption\">Firewall Configuration. Allowing all connections is not a problem, by having certificate and user authentication with password. <\/figcaption><\/figure>\n\n<p>Finally, we finish the configuration and have the VPN ready.  <br>Now we need to create the users that will have access to the tunnel.<\/p>\n\n<h2>Creating user with certificate for VPN<\/h2>\n\n<p>To create our users, go to <em>\n  <strong>System<\/strong>\n<\/em> &gt;<em>\n  <strong>User Manager<\/strong>\n<\/em>and then go to &#8216;<em>\n  <strong>+ Add<\/strong>\n<\/em>just below the panel with your PFSense users.<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/Captura-de-Tela-2020-03-19-&#xE0;s-8.46.11-PM-1024x401.png\" alt=\"\" class=\"wp-image-1193\"\/><figcaption class=\"wp-element-caption\">PFSense user screen.<\/figcaption><\/figure>\n\n<p>When creating a user, we add <em><strong>User<\/strong><\/em>, <em><strong>Password<\/strong><\/em> and fill in the rest with the user&#8217;s information. In this case, I&#8217;ll create a user named &#8216;<em><strong>made4it<\/strong><\/em>&#8216; that we&#8217;ll use to connect to the network. <\/p>\n<p>Below the group selection, there is a &#8216;<em><strong>Certificate<\/strong><\/em>&#8216; button. You must click &#8216;<em><strong>check<\/strong><\/em>&#8216; to create user certificates. <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/10-1024x550.png\" alt=\"\" class=\"wp-image-1195\"\/><figcaption class=\"wp-element-caption\">You must select the Certificate option in order to generate the user certificate.<\/figcaption><\/figure>\n\n<p>Under the user settings, we&#8217;ll create the certificate for our user. To do this, we&#8217;ll create a description. We&#8217;ll use &#8216;<em><strong>made4it_cert<\/strong><\/em>&#8216; in our example. We select the CA created earlier and specify the same <em><strong>2048<\/strong> <strong>bits<\/strong><\/em> as we used when creating it.   <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/11-1024x258.png\" alt=\"\" class=\"wp-image-1196\"\/><figcaption class=\"wp-element-caption\">Creating a Certificate for the User.<\/figcaption><\/figure>\n\n<p>Once that&#8217;s done, we can save our user.<br\/>To access the VPN, we need to export our certificate using the &#8216;<em><strong>OpenVPN Client Export<\/strong><\/em>&#8216; package.<\/p>\n\n<h2>Client Export Installation<\/h2>\n\n<p>Let&#8217;s go to <em>\n  <strong>System<\/strong>\n<\/em> &gt;<em>\n  <strong>Package Manager<\/strong>\n<\/em> &gt;<em>\n  <strong>Available Packages<\/strong>\n<\/em> and then, search for the package &#8216;<em>\n  <strong>openvpn-client-export<\/strong>\n<\/em>and give it a &#8216;<em>\n  <strong>+ Install<\/strong>\n<\/em>on it, then wait for the installation to finish:<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/12.png\" alt=\"\" class=\"wp-image-1197\"\/><figcaption class=\"wp-element-caption\">Path to the Package Installer.<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/13-1-1024x371.png\" alt=\"\" class=\"wp-image-1200\"\/><figcaption class=\"wp-element-caption\">Package search and installation.<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/14-1-1024x470.png\" alt=\"\" class=\"wp-image-1201\"\/><figcaption class=\"wp-element-caption\">Properly installed package.<\/figcaption><\/figure>\n\n<p>Once the installation is complete, simply go to <em><strong>VPN<\/strong><\/em>&gt;<strong><em>OpenVPN<\/em><\/strong>&gt;<em><strong>Client Export Utility<\/strong><\/em>, to begin exporting the certificate.<br\/>On this screen, we will leave the &#8216;<em><strong>Host Name Resolution<\/strong><\/em>&#8216; option as &#8216;<em><strong>Interface IP Address<\/strong><\/em>&#8216;. In &#8216;<em>\n  <strong>Verify Server CN<\/strong>\n<\/em>we can leave it at &#8216;<em>\n  <strong>Automatic<\/strong>\n<\/em>&#8216;.<\/p>\n<p>The rest can be left unchecked, so we click on &#8216;<em>\n  <strong>Save as Default<\/strong>\n<\/em>to apply the changes.<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/15-1024x510.png\" alt=\"\" class=\"wp-image-1202\"\/><\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/16-1024x510.png\" alt=\"\" class=\"wp-image-1203\"\/><figcaption class=\"wp-element-caption\">Options for exporting the certificate.<\/figcaption><\/figure>\n\n<p>With the changes applied, we go to the bottom of the screen, to the user we created, and select the certificate\/client that we will export.<\/p>\n<p>In my specific case, I&#8217;ll download the &#8216;<em><strong>Most Clients<\/strong><\/em>&#8216; from &#8216;<em><strong>Inline Configurations<\/strong><\/em>&#8216;, since I already have a client set up. If you&#8217;re going to use a Windows client, Viscosity (Windows or macOS), or another client, just choose the appropriate file. <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/17-1024x300.png\" alt=\"\" class=\"wp-image-1204\"\/><figcaption class=\"wp-element-caption\">Download the certificate for connection.<\/figcaption><\/figure>\n\n<p>In my case, I&#8217;ll use the &#8216;<em><strong>Tunnelblick<\/strong><\/em>&#8216; on <em><strong>macOS<\/strong><\/em>to connect to the VPN. To connect, simply add the configuration files to your client; then, when you connect, you\u2019ll be prompted for the VPN username and password, which will be for the user created earlier\u2014in our case, the user &#8216;<em><strong>made4it<\/strong><\/em>&#8216;: <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/18.png\" alt=\"\" class=\"wp-image-1205\"\/><figcaption class=\"wp-element-caption\">Enter the user and password you created in PFSense earlier.<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/19.png\" alt=\"\" class=\"wp-image-1206\"\/><figcaption class=\"wp-element-caption\">Client trying to connect to the VPN.<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/20.png\" alt=\"\" class=\"wp-image-1207\"\/><figcaption class=\"wp-element-caption\">Successfully connected!<\/figcaption><\/figure>\n\n<h2>Setting up VPN in Windows<\/h2>\n\n<p>To connect to our VPN, which is already configured on Windows, we need a client. We can install the OpenVPN client using the files provided by PFsense itself.<br\/>To do this, go to <em><strong>VPN &gt; OpenVPN &gt; Client Export<\/strong><\/em>, and download the most appropriate file. In this case, since I\u2019ll be using the OpenVPN client, we can select the version under <em><strong>Current Windows Installer<\/strong><\/em> (for Windows 7\/8 or Windows 10).  <\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"http:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/1-2.png\" alt=\"\" class=\"wp-image-1212\"\/><figcaption class=\"wp-element-caption\">Remember to choose the correct version when downloading.<\/figcaption><\/figure>\n\n<p>Once the file is downloaded, we can run it and proceed with the normal installation. The File we downloaded will start the OpenVPN configuration and install our VPN connection directly, with no further configuration required. <\/p>\n<p>When the installers are finished, we can open OpenVPN by clicking on the shortcut created on the desktop, then right-click on the icon in the Toolbar (Next to the Clock), and finally click Connect and provide the user\/password data created in PFSense.<\/p>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"http:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/2-1.png\" alt=\"\" class=\"wp-image-1213\"\/><figcaption class=\"wp-element-caption\">The First icon on the left is the OpenVPN Client.<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"http:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/3-1.png\" alt=\"\" class=\"wp-image-1214\"\/><figcaption class=\"wp-element-caption\">Just right-click and<strong>&#8220;Connect<\/strong><\/figcaption><\/figure>\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"http:\/\/www.made4it.com.br\/wp-content\/uploads\/2020\/03\/4-1.png\" alt=\"\" class=\"wp-image-1215\"\/><figcaption class=\"wp-element-caption\">Now just enter your username and password, and we&#8217;re on the VPN!<\/figcaption><\/figure>\n\n<p class=\"wp-block-paragraph\">So, that&#8217;s it, folks. This was our guide to setting up OpenVPN using pfSense and configuring a connection to it using the OpenVPN Client, with the files provided by pfSense itself.<br\/>If you need <strong>help or support<\/strong> with pfSense maintenance, <a href=\"https:\/\/made4it.com.br\/en\/?utm_source=blog\" target=\"_blank\" rel=\"noopener\" title=\"Please contact us\">please contact us<\/a> \u2014we&#8217;re here to help!<br\/>Thanks, and see you next time!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basically, VPN stands for Virtual Private Network, and it serves as a tunnel between two connection points. When you set up a VPN between a computer at your home and a PFsense at your company, for example, the tunnel created allows your computer to act as if it were \u201cinside\u201d your company\u2019s local network, granting access to servers and equipment, provided that the PFsense is reachable from your home computer. Now that we understand what VPN is all about, let&#8217;s learn how to set it up using PFSense to establish the connection between your different networks. Configuring the VPN We&#8217;ll use PFSense&#8217;s built-in &#8220;Wizard&#8221; for this configuration. To do this, go to the VPN > OpenVPN. Then, click the Wizardstab: So, that&#8217;s it, folks. This was our guide to setting up OpenVPN using pfSense and configuring a connection to it using the OpenVPN Client, with the files provided by pfSense itself.If you need help or support with pfSense maintenance, please contact us \u2014we&#8217;re here to help!Thanks, and see you next time!<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[869,1041,1042],"tags":[1048,1044,1072,1043],"class_list":["post-18612","post","type-post","status-publish","format-standard","hentry","category-network","category-pfsense","category-servers","tag-pfsense","tag-pfsense-basics","tag-pfsense-vpn","tag-servers"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Made4it\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Made4it -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Creating VPN using PFSense and OpenVPN - Made4it\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2025\/09\/logomade4it.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2025\/09\/logomade4it.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"87\" \/>\n\t\t<meta property=\"og:image:height\" content=\"27\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-03-25T15:55:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-06-29T19:40:13+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Creating VPN using PFSense and OpenVPN - Made4it\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2025\/09\/logomade4it.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#blogposting\",\"name\":\"Creating VPN using PFSense and OpenVPN - Made4it\",\"headline\":\"Creating VPN using PFSense and OpenVPN\",\"author\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/author\\\/made4it\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/made4it.com.br\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/banner.jpg\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#articleImage\",\"width\":728,\"height\":90},\"datePublished\":\"2020-03-25T15:55:11+00:00\",\"dateModified\":\"2026-06-29T19:40:13+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#webpage\"},\"articleSection\":\"Network, PFSense, Servers, pfsense, pfsense basics, pfsense vpn, Servers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/category\\\/network\\\/#listItem\",\"name\":\"Network\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/category\\\/network\\\/#listItem\",\"position\":2,\"name\":\"Network\",\"item\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/category\\\/network\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#listItem\",\"name\":\"Creating VPN using PFSense and OpenVPN\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#listItem\",\"position\":3,\"name\":\"Creating VPN using PFSense and OpenVPN\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/category\\\/network\\\/#listItem\",\"name\":\"Network\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/#organization\",\"name\":\"Made4it\",\"url\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/made4it.com.br\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/logomade4it.png\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#organizationLogo\",\"width\":87,\"height\":27},\"image\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/author\\\/made4it\\\/#author\",\"url\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/author\\\/made4it\\\/\",\"name\":\"Made4it\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9e851ee58f38006902829c03b2dc8e42c8a735a5561b807ca366ed66bd41f2ca?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Made4it\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#webpage\",\"url\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/\",\"name\":\"Creating VPN using PFSense and OpenVPN - Made4it\",\"description\":\"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/creating-vpn-using-pfsense-and-openvpn\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/author\\\/made4it\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/blog\\\/author\\\/made4it\\\/#author\"},\"datePublished\":\"2020-03-25T15:55:11+00:00\",\"dateModified\":\"2026-06-29T19:40:13+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/\",\"name\":\"Made4it\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/made4it.com.br\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Creating VPN using PFSense and OpenVPN - Made4it","description":"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you","canonical_url":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#blogposting","name":"Creating VPN using PFSense and OpenVPN - Made4it","headline":"Creating VPN using PFSense and OpenVPN","author":{"@id":"https:\/\/made4it.com.br\/en\/blog\/author\/made4it\/#author"},"publisher":{"@id":"https:\/\/made4it.com.br\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/04\/banner.jpg","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#articleImage","width":728,"height":90},"datePublished":"2020-03-25T15:55:11+00:00","dateModified":"2026-06-29T19:40:13+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#webpage"},"isPartOf":{"@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#webpage"},"articleSection":"Network, PFSense, Servers, pfsense, pfsense basics, pfsense vpn, Servers"},{"@type":"BreadcrumbList","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/made4it.com.br\/en\/#listItem","position":1,"name":"Home","item":"https:\/\/made4it.com.br\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/made4it.com.br\/en\/blog\/category\/network\/#listItem","name":"Network"}},{"@type":"ListItem","@id":"https:\/\/made4it.com.br\/en\/blog\/category\/network\/#listItem","position":2,"name":"Network","item":"https:\/\/made4it.com.br\/en\/blog\/category\/network\/","nextItem":{"@type":"ListItem","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#listItem","name":"Creating VPN using PFSense and OpenVPN"},"previousItem":{"@type":"ListItem","@id":"https:\/\/made4it.com.br\/en\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#listItem","position":3,"name":"Creating VPN using PFSense and OpenVPN","previousItem":{"@type":"ListItem","@id":"https:\/\/made4it.com.br\/en\/blog\/category\/network\/#listItem","name":"Network"}}]},{"@type":"Organization","@id":"https:\/\/made4it.com.br\/en\/#organization","name":"Made4it","url":"https:\/\/made4it.com.br\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/made4it.com.br\/wp-content\/uploads\/2025\/09\/logomade4it.png","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#organizationLogo","width":87,"height":27},"image":{"@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/made4it.com.br\/en\/blog\/author\/made4it\/#author","url":"https:\/\/made4it.com.br\/en\/blog\/author\/made4it\/","name":"Made4it","image":{"@type":"ImageObject","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/9e851ee58f38006902829c03b2dc8e42c8a735a5561b807ca366ed66bd41f2ca?s=96&d=mm&r=g","width":96,"height":96,"caption":"Made4it"}},{"@type":"WebPage","@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#webpage","url":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/","name":"Creating VPN using PFSense and OpenVPN - Made4it","description":"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/made4it.com.br\/en\/#website"},"breadcrumb":{"@id":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/#breadcrumblist"},"author":{"@id":"https:\/\/made4it.com.br\/en\/blog\/author\/made4it\/#author"},"creator":{"@id":"https:\/\/made4it.com.br\/en\/blog\/author\/made4it\/#author"},"datePublished":"2020-03-25T15:55:11+00:00","dateModified":"2026-06-29T19:40:13+00:00"},{"@type":"WebSite","@id":"https:\/\/made4it.com.br\/en\/#website","url":"https:\/\/made4it.com.br\/en\/","name":"Made4it","inLanguage":"en-US","publisher":{"@id":"https:\/\/made4it.com.br\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Made4it -","og:type":"article","og:title":"Creating VPN using PFSense and OpenVPN - Made4it","og:description":"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you","og:url":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/","og:image":"https:\/\/made4it.com.br\/wp-content\/uploads\/2025\/09\/logomade4it.png","og:image:secure_url":"https:\/\/made4it.com.br\/wp-content\/uploads\/2025\/09\/logomade4it.png","og:image:width":87,"og:image:height":27,"article:published_time":"2020-03-25T15:55:11+00:00","article:modified_time":"2026-06-29T19:40:13+00:00","twitter:card":"summary_large_image","twitter:title":"Creating VPN using PFSense and OpenVPN - Made4it","twitter:description":"Hello everyone! In our last article we learned how to install and configure PFSense, to be used as the Gateway of your network, allowing it to act with several functionalities for the network. Today we will introduce you to creating a VPN with OpenVPN, so you can access your entire internal infrastructure from anywhere you","twitter:image":"https:\/\/made4it.com.br\/wp-content\/uploads\/2025\/09\/logomade4it.png"},"aioseo_meta_data":{"post_id":"18612","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-06-29 19:40:11","updated":"2026-06-29 20:53:41"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/made4it.com.br\/en\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/made4it.com.br\/en\/blog\/category\/network\/\" title=\"Network\">Network<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating VPN using PFSense and OpenVPN\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/made4it.com.br\/en\/"},{"label":"Network","link":"https:\/\/made4it.com.br\/en\/blog\/category\/network\/"},{"label":"Creating VPN using PFSense and OpenVPN","link":"https:\/\/made4it.com.br\/en\/blog\/creating-vpn-using-pfsense-and-openvpn\/"}],"_links":{"self":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/18612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/comments?post=18612"}],"version-history":[{"count":1,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/18612\/revisions"}],"predecessor-version":[{"id":18613,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/18612\/revisions\/18613"}],"wp:attachment":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media?parent=18612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/categories?post=18612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/tags?post=18612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}