🌐 VI | EN

How to Connect NordVPN and Isolate VPN Traffic on a Separate AP (Part 1)

Nghia Phan
Nghia Phan
🌐 Bản tiếng Việt Technical Guide Views

{{< notice “warning” >}} Outdated {{< /notice >}}

{{< notice “info” >}} This is an advanced, multi-part configuration covering VLANs, interfaces, firewall rules, VPN, and the Wi-Fi AP. Read the menus carefully before applying changes. {{< /notice >}}

I. Create a VLAN and interface

1. Create a VLAN

  • Log in to OPNsense and open Interfaces > Other Types > VLAN.
  • Click Add.
  • Select the LAN port as Parent interface.
  • Enter a VLAN tag such as 11, add a description such as VPN, and click Save.

2. Create an interface for the VLAN

  • Open Interfaces > Assignments and add an interface. Under New interface, select vlan11 on xxx (VPN).
  • The new interface may be named OPT1. Open it, enable it, and configure:
FieldValueNotes
DescriptionVPN_LANEasy-to-remember name
Block Private networksUnchecked
Block bogon networksUnchecked
IPv4 Configuration TypeStatic IPv4
IPv6 Configuration TypeNone
MAC address / MTU / MSSEmpty
Speed and duplexDefault
Static IPv4 address192.168.200.1/24Use a subnet appropriate for your OPNsense LAN
IPv4 Upstream GatewayAuto-detect

Click Save, then Apply changes.

3. Configure DHCP for VPN_LAN

Open ServicesDHCPv4VPN_LAN and set:

FieldValueNotes
EnableChecked
Range192.168.200.100 to 192.168.200.200DHCP range
DNS Server192.168.200.1
Gateway192.168.200.1

4. Configure the firewall

Open FirewallRulesVPN_LAN.

Allow DNS:

FieldValue
ActionPASS
InterfaceVPN_LAN
ProtocolTCP/UDP
SourceVPN_LAN net
DestinationVPN_LAN Address
Destination portDNS/DNS
DescriptionAllow DNS

Save the rule.

Allow VPN_LAN Internet access:

FieldValue
ActionPass
InterfaceVPN_LAN
Protocolany
SourceVPN_LAN net
Destinationany
Destination portany
DescriptionAllow VPN_LAN Network

Save and apply the changes.

{{< notice “tip” >}} Continue with Part 2 — Configure NordVPN on OPNsense. {{< /notice >}}

Comments & Discussion

Share your thoughts, ask questions and feedback

Markdown & QQ Emoji
Loading comments...