Outdated
This is an advanced configuration. You should understand the OPNsense menus and have a recovery path before changing VPN routing.
See Part 1 — Add a VLAN and assign it to an interface .
II. Configure NordVPN on OPNsense
1. Configure the VPN client
Open System → Trust → Authorities, click +Add, and create a certificate authority.
Enter:
- Descriptive Name:
NordVPN_CA - Method: Import an existing Certificate Authority
- Certificate data: paste the following certificate.
| |
Leave Certificate Private Key empty and keep Serial for next certificate at its default.
 Screenshot

Click Save.
Open VPN → OpenVPN → Clients and click +Add.
General information:
| Field | Value |
|---|---|
| Disabled | Leave unchecked |
| Description | For example NordVPN_JP |
| Server mode | Peer to Peer (SSL/TLS) |
| Protocol | UDP4, or TCP4 if required |
| Device mode | tun |
| Interface | VPN_LAN |
| Remote server | Get a hostname from
https://nordvpn.com/servers/tools/
, for example vn21.nordvpn.com; use port 1194 for UDP or 443 for TCP |
| Retry DNS resolution | Checked |
| Proxy host / port | Empty |
| Proxy Authentication | None |
| Local port | Empty |
User authentication:
| Field | Value |
|---|---|
| Username/password | NordVPN username and password |
| Renegotiate time | Empty |
Cryptographic settings:
- Enable authentication of TLS packets: Enabled.
- Disable automatic TLS-key generation and paste the static key below.
| |
- Peer Certificate Authority:
NordVPN_CA. - Client Certificate: None; username and password are used.
- Encryption Algorithm: AES-256-CBC.
- Auth Digest Algorithm: SHA512.
- Hardware Crypto: No hardware acceleration.
 Screenshot

Tunnel settings:
| Field | Value |
|---|---|
| IPv4/IPv6 tunnel network | Empty |
| IPv4/IPv6 remote networks | Empty |
| Limit outgoing bandwidth | Empty |
| Compression | Enable with adaptive compression |
| Type-of-service | Unchecked |
| Disable IPv6 | Checked if IPv6 is not used |
| Don't pull routes | Unchecked |
| Don't add/remove routes | Checked |
 Screenshot

Advanced configuration: paste:
| |
Set Verbosity level to 3 or leave it at 1, then click Save.
2. Add an interface for the VPN
- Open Interfaces → Assignments and click +. The interface is usually named
ovpnc1. - Edit the new interface and enable it.
| Field | Value |
|---|---|
| Description | NordVPN or another useful name |
| Block private networks | Unchecked |
| Block bogon networks | Unchecked |
| IPv4 Configuration Type | None |
| IPv6 Configuration Type | None |
| MAC / MTU / MSS | Empty |
Leave DHCP client configuration unchanged. Click Save and Apply changes.
 Screenshot

Configure the firewall and gateway
- Open Firewall → NAT → Outbound and select Hybrid outbound NAT rule generation. Save and apply.

- Under Firewall → Rules → VPN_LAN, edit Allow VPN_LAN network and select gateway
NORDVPN_VPNV4under Advanced features.
- Add another rule with Source
VPN_LAN netand DestinationVPN_LAN Address, then save and apply. - Open System → Gateways → Single, edit
NORDVPN_VPN6, disable it, and apply. - Open VPN → OpenVPN → Connection Status. The connection should show up.
 Screenshots


III. Configure the AP and separate VPN Wi-Fi
Follow the
OpenWrt AP Mode and Guest VLAN guide
, changing the VLAN ID to the one used for
VPN_LAN.Good luck. If you find a missing step or get stuck, leave a comment with the exact screen and error.


Góp Ý / Bình Luận / Đánh giá