Note: If your device/service supports SHA256 and DH group 14, it is recommended to use these settings instead.
pfSense IPsec Site-to-Site VPN tunnel configuration
-
Go to VPN -> IPsec
-
Select +Add P1
- Key Exchange Version: IKEv2
- Internet Protocol: IPv4
- Interface: Your pfSense WAN Interface
- Remote Gateway: the IP of your NordLayer server with a dedicated IP
- Authentication Method: Mutual PSK
- Negotiation Mode: Main
- My Identifier: My IP Address
- Peer Identifier: Peer IP Address
- Pre-Shared key: generate a key (we will also need this value on our end)
- Encryption Algorithm
- Algorithm: AES
- Key Length: 256 bits
- HASH: SHA256
- DH Group: 14
- Lifetime (Seconds): 28800
- Advanced Options
- Disable rekey: Unchecked
- Margintime (Seconds): Empty
- Responder Only: Unchecked
- NAT Traversal: Auto
- Dead Peer Detection: Checked
- Delay: 10
- Max failures: 5
- Select Save
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=UPteDR7VNzFkfySw28LiDTRQvtTSYfvbof6ri5maijw%3D)
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=VsJU6KcS5nnGFWJM%2BaHlZPz4UgKXj6QmSp80fUscbcc%3D)
- Add phase 2: Select +Add p2
- Mode: Tunnel IPv4
- Local Network: Network: Put your local LAN network subnet
- Remote Network: Network: 10.6.0.0/20
- Phase 2: Proposal
- Protocol: ESP
- Encryption Algorithm-AES: 256 bits
- Hash Algorithms: SHA256
- PFS Key Group: 14
- Lifetime (Seconds): 3600
- Select Save
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=nt4y%2FiuQRwSYZYDxdHhiira0V3TgbWlpOtOIZB2SNjw%3D)
- Select Apply Changes
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=PUY2nYK%2FUaZ47Y8oqjJUW5jECHDw6ISR2K9ruK5NXL4%3D)
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=bfZZ9tXKDK%2F5m2OmMyebSewgaOV0ciCD9y5vMPRhrO4%3D)
pfSense Firewall Rules (Optional)
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=02vzkKxmA%2FufP7r7Tp%2BIo7iKPuuKQbzVckgZhZjs%2Bj0%3D)
-
In the Menu Bar go to Firewall -> Rules
-
Under IPSEC add a new rule
- Action: Pass
- Quick: Mark v
- Interface: WAN and IPSEC
- Source: the IP of your NordLayer server with a dedicated IP
- Destination: Either put any or you can limit to your FW external IP
- Select Save.
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=2FkgfjHnBJtGui6kFpL6165dcbDzYuS4Tsx04Nde1bo%3D)
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=KQABTGuJ0SrlFoQgubfT5hm6L5dIawY8SSoH7vM3QgY%3D)
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=Lf6pCtVegCCHXhw3xhSwvBsjTEqGUJhz1y2NQJu6cGs%3D)
- Under IPSEC add a new rule:
- Action: Pass
- Source: the IP of your NordLayer server with a dedicated IP
- Destination: Either put any or you can limit to your FW external IP
- Select Save.
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=sbswAGteLNe52LwYch1nzJEv1QiVSdHNE2ZqjYupwFI%3D)
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=%2Fl726dBWZ96TONfWTxS7Hq28n8w%2BjRr60c37HpmTPuQ%3D)
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=NwzJaur%2BtRyxQ6nhhOKWarfJcr9GYDS%2Bbhh916lWLIs%3D)
- Select Apply Changes
Bringing the tunnel up
-
In the Menu Bar go to Status:-> IPsec
-
On the tunnel, you created select: Connect VPN
.png?sv=2026-02-06&spr=https&st=2026-11-21T15%3A52%3A45Z&se=2026-11-21T16%3A03%3A45Z&sr=b&sp=r&sig=OPXA4PpX3xH5uPRgQZs3Sst6zL%2BhunOPuHdZb%2BYuSTo%3D)
Ending note:
In order to finalize the site-to-site tunnel, please create a setup in Sites tab of the NordLayer Control Panel.
- Pre-shared key - you can generate it or we can provide it
- Encryption details (AES, SHA and DH group) - AES256, SHA256 and DH group 14 are recommended (also must support IKEv2)
- Remote gateway/router public IP (must be reachable while connected to the server with a dedicated IP)
- Remote subnet and mask (the subnet is used in your local network)
Note: In case you have any questions or issues, press 'Chat with support' at the bottom of the page.