<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.comfac.net/index.php?action=history&amp;feed=atom&amp;title=Training%3A_IPsec_VPN</id>
	<title>Training: IPsec VPN - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.comfac.net/index.php?action=history&amp;feed=atom&amp;title=Training%3A_IPsec_VPN"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=Training:_IPsec_VPN&amp;action=history"/>
	<updated>2026-06-05T11:00:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://mediawiki.comfac.net/index.php?title=Training:_IPsec_VPN&amp;diff=237&amp;oldid=prev</id>
		<title>Justinaquino: Imported from Netgate pfSense training PDF via bot</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=Training:_IPsec_VPN&amp;diff=237&amp;oldid=prev"/>
		<updated>2026-04-23T07:07:11Z</updated>

		<summary type="html">&lt;p&gt;Imported from Netgate pfSense training PDF via bot&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #e7f3fe; border-left: 6px solid #2196F3; padding: 10px; margin-bottom: 15px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;Netgate pfSense Plus Fundamentals — Section 5: VPNs and IPsec&amp;lt;/strong&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This page covers VPN concepts, IPsec remote access, site-to-site configurations, and IKE phase negotiations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= VPNs and IPsec =&lt;br /&gt;
&lt;br /&gt;
== VPNs — Remote Access ==&lt;br /&gt;
&lt;br /&gt;
Remote access VPNs provide connectivity for mobile or remote users, enabling secure tunneling over untrusted networks.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Use cases:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Tunneling for access or performance reasons&lt;br /&gt;
* Additional wireless protection&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available options:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Option !! Best For&lt;br /&gt;
|-&lt;br /&gt;
| IPsec || Built-in clients (OS X, iOS, Android)&lt;br /&gt;
|-&lt;br /&gt;
| OpenVPN || Ease of client configuration&lt;br /&gt;
|-&lt;br /&gt;
| WireGuard || Good performance for simple setup&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The best option is largely a matter of &amp;#039;&amp;#039;&amp;#039;personal preference&amp;#039;&amp;#039;&amp;#039; and the specific client ecosystem in use.&lt;br /&gt;
&lt;br /&gt;
== VPNs — Site to Site ==&lt;br /&gt;
&lt;br /&gt;
Site-to-site VPNs provide a permanent connection between networks, commonly used for:&lt;br /&gt;
* Multiple company offices or data centers&lt;br /&gt;
* Service providers&lt;br /&gt;
* Partners&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available options:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Option !! Best For&lt;br /&gt;
|-&lt;br /&gt;
| IPsec || Widely interoperable&lt;br /&gt;
|-&lt;br /&gt;
| OpenVPN || Client behind NAT&lt;br /&gt;
|-&lt;br /&gt;
| WireGuard || Client behind NAT, modern crypto&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Again, the best option depends on personal preference and a weighing of strengths and weaknesses. If a client is behind NAT, OpenVPN or WireGuard may be preferable. For wide interoperability, IPsec is the standard.&lt;br /&gt;
&lt;br /&gt;
= About IPsec =&lt;br /&gt;
&lt;br /&gt;
IPsec is a widely interoperable VPN protocol that typically offers higher performance than most alternatives.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Key characteristics:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Peer-to-peer relationship&lt;br /&gt;
* Typically &amp;#039;&amp;#039;&amp;#039;policy-based&amp;#039;&amp;#039;&amp;#039; (but can be &amp;#039;&amp;#039;&amp;#039;VTI / route-based&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Phase 1&amp;#039;&amp;#039;&amp;#039; protects IKE messages between peers&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Phase 2&amp;#039;&amp;#039;&amp;#039; protects IP traffic between endpoints&lt;br /&gt;
* Establishes a &amp;#039;&amp;#039;&amp;#039;Security Association (SA)&amp;#039;&amp;#039;&amp;#039; between networks&lt;br /&gt;
* The SA determines which traffic traverses the tunnel&lt;br /&gt;
&lt;br /&gt;
== IPsec Phase 1 ==&lt;br /&gt;
&lt;br /&gt;
Phase 1 protects IKE messages between peers.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Key points:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Peers are typically a single IP address&lt;br /&gt;
* Encryption and authentication protocols are required&lt;br /&gt;
* Common example: &amp;#039;&amp;#039;&amp;#039;AES-256 / SHA256&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Provides a secure path for Phase 2 negotiation&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter !! Typical Value&lt;br /&gt;
|-&lt;br /&gt;
| Encryption || AES-256&lt;br /&gt;
|-&lt;br /&gt;
| Authentication || SHA256&lt;br /&gt;
|-&lt;br /&gt;
| DH Group || 14 (2048-bit) or higher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== IPsec Phase 2 ==&lt;br /&gt;
&lt;br /&gt;
Phase 2 protects IP traffic between endpoints.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Key points:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Security Association is formed between networks&lt;br /&gt;
* Encryption is optional for Phase 2 traffic — but strongly recommended&lt;br /&gt;
* Authentication method is still required&lt;br /&gt;
&lt;br /&gt;
= IPsec — How It Looks =&lt;br /&gt;
&lt;br /&gt;
Conceptually, IPsec creates an encrypted tunnel between two peer gateways:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Network A] --- [Gateway A] ====== encrypted tunnel ====== [Gateway B] --- [Network B]&lt;br /&gt;
                    ↑                                    ↑&lt;br /&gt;
              Phase 1 (IKE)                        Phase 1 (IKE)&lt;br /&gt;
              Phase 2 (ESP/AH)                     Phase 2 (ESP/AH)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Section 5 Summary =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Point !! Detail&lt;br /&gt;
|-&lt;br /&gt;
| Style || Peer-to-peer VPN&lt;br /&gt;
|-&lt;br /&gt;
| Routing || Can be policy-based or route-based (VTI)&lt;br /&gt;
|-&lt;br /&gt;
| Routing table || Not considered if policy-based&lt;br /&gt;
|-&lt;br /&gt;
| Agreement || As long as both sides agree, the tunnel will come up&lt;br /&gt;
|-&lt;br /&gt;
| Firewall || Still need a firewall rule to allow tunnel traffic&lt;br /&gt;
|-&lt;br /&gt;
| Performance || Consider taking advantage of AES-NI for performance&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Next Module =&lt;br /&gt;
&lt;br /&gt;
* [[Training_Lab_5:_IPsec_VPN|Lab 5: IPsec VPN Hands-On]]&lt;br /&gt;
&lt;br /&gt;
= Source Attribution =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Document:&amp;#039;&amp;#039;&amp;#039; FUND001-LIVE-SLIDE-SEG5-IPSEC.pdf&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Course:&amp;#039;&amp;#039;&amp;#039; pfSense Plus Fundamentals and Practical Application&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Copyright:&amp;#039;&amp;#039;&amp;#039; © 2017 Rubicon Communications, LLC dba Netgate&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Extracted:&amp;#039;&amp;#039;&amp;#039; 2026-04-23 via pdftotext&lt;/div&gt;</summary>
		<author><name>Justinaquino</name></author>
	</entry>
</feed>