Bookmark

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

Outdated
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.

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.


0 Bình luận

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