Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - simonmb

#1
General Discussion / Re: Bridged VLAN
March 22, 2025, 11:52:22 PM
Quote from: pfry on March 22, 2025, 09:07:50 PMIs having the PC connected directly to igc1 a long-term plan? Your initial troubleshooting effort was good, but under normal operation would you expect any reliability issues from the switch?
I don't know if you saw my reply to your message but I added a little extra detail:
Quote from: simonmb on March 22, 2025, 06:41:25 PMlet's start afresh with what I'm currently doing and maybe there's a better way.

I have my router, switch and AP all on 192.168.11.0/24.

I've configured an interface on the router to carry 5 vlans (192.168.11.0/24, .12, .13, .19) to a switch, which an AP (carrying same vlans) is connected.

One port on my router (192.168.14.0/24) is connected to an NVR.

I mostly manage my networking equipment from a computer on 192.168.12.0/24 which is connected to the switch (access controlled by firewall rules).

Occasionly I've connected a laptop directly to the router (the port assigned to 192.168.11.0/24) when I've suspected problems with the switch, or if I've misconfigured access from 192.168.12.0/24, although I can't even remember the last time I did it, but because I had spare ports I thought I'd replicate it.


Quote from: pfry on March 22, 2025, 09:07:50 PMAs for the WAN/Internet interface, you have... well, lots of options, depending on how you want to plug it up.

With a bridged ".11" subnet you could place other devices in the subnet, connected through the firewall, and filter them (e.g. other devices on the ".11" bridge, like your PC on igc1). This has the advantage of allowing you to connect said equipment directly to your router and bypass the firewall if necessary/desired.
To be honest I want to keep things as simple as possible because my knowledge in this area is limited. I want the vlans to do the heavy lifting for network segregation, and a handful of firewall rules to allow access from HOME (.12) to CCTV (.14) and mDNS and SSDP between HOME (.12) and IOT (.13) for audio streamers.
#2
General Discussion / Re: Bridged VLAN
March 22, 2025, 06:58:53 PM
Quote from: Patrick M. Hausen on March 22, 2025, 03:50:55 PMBut why not plug the PC into the switch which is much better at these things?
It wasn't intended for regular use, I'd previously connected a laptop to igc1 for troubleshooting when I suspected a problem with the switch.

It sounds like my options include:
  • Create another subnet on IGC1 with access to manage the router.
  • Configure my laptop to accept tagged vlans
  • Access the router over the serial interface

Thanks for your help

#3
General Discussion / Re: Bridged VLAN
March 22, 2025, 06:45:47 PM
Quote from: dseven on March 22, 2025, 03:55:03 PMSo the PC connected to IGC1 should work on LAN. Doesn't it?
Yes the PC is fine on IGC1.

Quote from: dseven on March 22, 2025, 03:55:03 PMThe problem, however, is that VLAN 11 is tagged on IGC2 and IGC3, so the PC will only be able to use it if it can handle VLAN tagging, or if you connect a managed switch between one of those ports and the PC, and have the switch handle the tagging (as Patrick pointed out before).
I think that's what I hadn't appreciated initially as the posts I had seen made no mention of it; I guess because it was obvious/assumed.

Thanks for you help
#4
General Discussion / Re: Bridged VLAN
March 22, 2025, 06:41:25 PM
Quote from: pfry on March 22, 2025, 04:28:31 PM
Quote from: simonmb on March 22, 2025, 12:42:09 PM[...]
I'm trying to recreate my EdgeOS setup in OPNsense but it sounds like it's not that simple.

Possibly. (I've never looked at Ubiquity.) Looks like you're conflating a switch model for VLANs with OPNsense's router model.
I think that's probably the crux of the problem.

Quote from: pfry on March 22, 2025, 04:28:31 PMSo let's start from the beginning. I'm going to channel Patrick and ask "Why are you using bridges?"

I was using a bridge to combine subnets across physical interfaces, but let's start afresh with what I'm currently doing and maybe there's a better way.

I have my router, switch and AP all on 192.168.11.0/24.

I've configured an interface on the router to carry 5 vlans (192.168.11.0/24, .12, .13, .19) to a switch, which an AP (carrying same vlans) is connected.

One port on my router (192.168.14.0/24) is connected to an NVR.

I mostly manage my networking equipment from a computer on 192.168.12.0/24 which is connected to the switch (access controlled by firewall rules).

Occasionly I've connected a laptop directly to the router (the port assigned to 192.168.11.0/24) when I've suspected problems with the switch, or if I've misconfigured access from 192.168.12.0/24, although I can't even remember the last time I did it, but because I had spare ports I thought I'd replicate it.
#5
General Discussion / Re: Bridged VLAN
March 22, 2025, 03:50:30 PM
Quote from: dseven on March 22, 2025, 03:29:03 PMBut what interface on OPNsense is ".1" on?

Note that you cannot bridge the untagged VLAN on a NIC and also use tagged VLANs on that NIC at the same time.

During testing IGC1 is assigned the LAN interface (192.168.1) which my PC is connected to.
I'm trying to bridge IGC2 & IGC3 with a MGMT vlan (192.168.11) hoping that if I move my PC from IGC1 to IGC2/IGC3 it'll pick up a 192.168.11 address.
#6
General Discussion / Re: Bridged VLAN
March 22, 2025, 12:42:09 PM
Quote from: dseven on March 22, 2025, 12:15:55 PMWhat's ".1"?
That's the current subnet (192.168.1). All the others (.11,.12) represent the subnet and VLAN tag.

Quote from: dseven on March 22, 2025, 12:15:55 PMAre you doing VLAN tagging on the PC? Getting this right can be tricky, especially on Windows.
I'm not.

I'm trying to recreate my EdgeOS setup in OPNsense but it sounds like it's not that simple.
#7
General Discussion / Re: Bridged VLAN
March 22, 2025, 12:00:12 PM
Quote from: Patrick M. Hausen on March 22, 2025, 11:38:03 AM
Quote from: simonmb on March 22, 2025, 11:33:08 AMI assigned them an interface
Device      Interface
vlan0.2.11  vlan_MGMT_02
vlan0.3.11  vlan_MGMT_03

Not necessary.
Given a bridge only accepts interfaces as members how would I link them?


Quote from: Patrick M. Hausen on March 22, 2025, 11:38:03 AM
Quote from: simonmb on March 22, 2025, 11:33:08 AMI don't believe this matters at this point but I also changed
System ‣ Settings ‣ Tunables and change
net.link.bridge.pfil_member to 0
net.link.bridge.pfil_bridge to 1

Absolutely necessary, but you did it, so also good.
I thought that was "just" about where the firewall rules were applied, which for this test didn't really matter?


Quote from: Patrick M. Hausen on March 22, 2025, 11:38:03 AMWhat you now created is two trunk ports that are bridged so you can connect e.g. two switches or APs that also run VLAN 11 tagged. If you connect a PC with an untagged port of course not much will happen.
That's what I was thinking, but your reply to this post had me believe it should be possible https://forum.opnsense.org/index.php?msg=138047
I've clearly misinterpreted something.


Quote from: Patrick M. Hausen on March 22, 2025, 11:38:03 AMWhat is the intended final setup? Connect network devices (tagged) or PCs (untagged)?

Ultimately
IGC0                   -> WAN
IGC1  .11              -> PC
IGC2  .11,.12,.13,.19  -> Switch (vlan aware) & AP
IGC3  .14              -> NVR


but for this test it was
IGC0                   -> WAN
IGC1  .1               -> PC
IGC2  .11              -> PC
IGC3  .11              -> Switch (vlan aware) & AP
#8
General Discussion / Bridged VLAN
March 22, 2025, 11:33:08 AM
I'm migrating from EdgeOS to OPNsense and struggling to create a vlan that spans multiple physical interfaces.

Ultimately I'm trying to create 5 subnets
MGMT   .11
HOME   .12
IOT    .13
CCTV   .14
GUEST  .19


Assigned to the following physical interfaces
IGC0                     -> WAN
IGC1   .11               -> PC
IGC2   .11,.12,.13,.19   -> Switch & AP
IGC3   .14               -> NVR



I currently have the default config of WAN and LAN (192.168.1) and I'm trying to create the MGMT vlan across IGC2 and IGC3 (for testing) using this post as reference https://forum.opnsense.org/index.php?topic=42084.msg207401#msg207401

I created a vlan on each port
Device        Parent   Tag
vlan0.2.11    igc2     11
vlan0.3.11    igc3     11


I assigned them an interface
Device       Interface
vlan0.2.11   vlan_MGMT_02
vlan0.3.11   vlan_MGMT_03


I added both to a bridge
Interface   Members
bridge0     vlan_MGMT_02,vlan_MGMT_03


Assigned it an interface
Interface   Device
MGMT        bridge0


Enabled the MGMT interface and assigned it a static IP of 192.168.11.1
Enabled the DHCP Server on the MGMT Interface

I don't believe this matters at this point but I also changed
System ‣ Settings ‣ Tunables and change
net.link.bridge.pfil_member to 0
net.link.bridge.pfil_bridge to 1


I believe the 'Automatically generated rules' allow access to the DHCP server on the MGMT interface (I have tried creating an allow all rule) but when I plug my PC into one of the ports and issue ipconfig /release; ipconfig /renew the process times out with the following error:
QuoteAn error occurred while renewing interface Ethernet : unable to contact your DHCP server. Request has timed out.


Is this possible, and if so where am I going wrong?

Thanks in advance