{"id":12144,"date":"2022-04-14T18:59:05","date_gmt":"2022-04-14T15:59:05","guid":{"rendered":"https:\/\/kifarunix.com\/?p=12144"},"modified":"2024-03-09T11:51:01","modified_gmt":"2024-03-09T08:51:01","slug":"setup-ipsec-site-to-site-vpn-tunnel-on-pfsense","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/setup-ipsec-site-to-site-vpn-tunnel-on-pfsense\/","title":{"rendered":"Setup IPSec Site-to-Site VPN Tunnel on pfSense"},"content":{"rendered":"\n

In this tutorial, you will learn how to setup IPSec Site-to-Site VPN Tunnel on pfSense. Internet Protocol Security<\/strong> (IPsec) is a secure network protocol suite that authenticates and encrypts the packets of data to provide secure encrypted communication between two computers over an Internet Protocol network. It is commonly used in virtual private networks (VPNs)<\/em>.<\/p>\n\n\n\n

Setup IPSec Site-to-Site VPN Tunnel on pfSense<\/h2>\n\n\n\n

In order to demonstrate how to setup a secured site to site IPSec VPN tunnel, we will be using two pfSense<\/a>, a free and open source firewall and router, running on two different LANs.<\/p>\n\n\n\n

See our representation below;<\/p>\n\n\n\n

    \n    \n  +------------------------+       IPSec VPN Tunnel      +------------------------+\n  |    [  pfSense gw  ]    | [ Side A ]   |   [ Side B ] |    [  pfSense gw  ]    |\n  +      65.108.95.120     +--------------+--------------+      135.181.192.121   +\n  |       172.16.0.1 [VPN] |                             |      192.168.10.1 [VPN]|\n  +------------------------+                             +------------------------+\n               |                                                       |      \n               +                                                       +\n               |                                                       |\n+-------------------------------+                        +------------------------------------+\n|    [  Side A Local LAN  ]     |                        |    [  Side B Local LAN  ]          |\n+        172.16.0.0\/24          +                        +        192.168.10.0\/24             +\n|                               |                        |                                    |\n| [ 172.16.0.10] [ 172.16.0.20] |                        |   [ 192.16.10.20] [ 192.168.10.50] |\n+-------------------------------+                        +------------------------------------+ \n<\/code><\/pre>\n\n\n\n

The pfSense firewalls\/routers acts as the IPSec peers. The peers perform VPN negotiations aimed at encrypting and securing the communications between the local area networks.<\/p>\n\n\n\n

The VPN negotations happen over two phases;<\/p>\n\n\n\n