OPNsense Forum

Archive => 15.1 Legacy Series => Topic started by: macafee on April 13, 2015, 10:54:11 am

Title: Bridge Mode Strange Problem
Post by: macafee on April 13, 2015, 10:54:11 am
I am using OPNsense 15.1.9-amd64 now. I found a strange problem about bridge mode. I use the Intel I350 4-Port NIC to create a bridge named bridge0. The bridge0 as LAN interface use ip address 192.168.1.254, the port1 of the bridge connected to a pc with ip address 192.168.1.10, the port2 of the bridge connected to another pc with ip address 192.168.1.20. Two pcs can ping 192.168.1.254 and connect to the internet. But the pcs cannt ping and connect to each other. I have set the lan rules of firewall.
IPv4 *    LAN net    *    *    *    *    none         Default allow LAN to any rule     

Why does pcs cannt connect to each other´╝č
                                                   
Title: Re: Bridge Mode Strange Problem
Post by: franco on April 14, 2015, 11:16:27 am
I am testing this since yesterday having a couple of issues that I haven't been able to locate. The bridge setup isn't as clear as it should especially WRT the bridge being hooked into an existing interfaces as opposed to moving the existing interface config to the bridge. I'll look into this more in the next few days. Thank you for the report. :)
Title: Re: Bridge Mode Strange Problem
Post by: macafee on April 14, 2015, 06:22:44 pm
I am looking forward to your solutions. Thank you!
Title: Re: Bridge Mode Strange Problem
Post by: macafee on April 18, 2015, 05:23:08 pm
I have resolved this problem.

sysctl net.link.bridge.pfil_member=0

Everything works great!
Title: Re: Bridge Mode Strange Problem
Post by: franco on April 20, 2015, 09:36:32 am
Thanks for looking into this. Are you using the captive portal functionality as well? Traffic shaping configured? It seems a bit odd that this fixes the issue. It will certainly break other setups. I am suspecting that our kernel patch rework (going back to FreeBSD standards) will help with this problem, but we are still debating how much we clean up short term and what will stay in place for a while.
Title: Re: Bridge Mode Strange Problem
Post by: macafee on April 21, 2015, 08:25:45 am
I'm not using the captive portal and traffic shaping. What did you mean that it will cretainly break other setups.
Title: Re: Bridge Mode Strange Problem
Post by: franco on April 21, 2015, 02:59:32 pm
Yep, using the captive portal or traffic shaping will want this sysctl to be set, otherwise the traffic of said brigde might be hidden from those features. Lots of speculation surrounding kernel patches. Ad is working on cleaning these up so we can have a more standards-compliant kernel that works just as well in the future.
Title: Re: [WORKAROUND] Bridge Mode Strange Problem
Post by: franco on May 04, 2015, 04:59:55 pm
Does the problem persist with 15.1.10? Make sure you have the latest kernel. uname -a would help as the FreeBSD version hasn't changed. :)
Title: Re: [WORKAROUND] Bridge Mode Strange Problem
Post by: macafee on May 05, 2015, 12:04:17 pm
Do you mean that change sysctl net.link.bridge.pfil_member=1 and test it again?
Title: Re: [WORKAROUND] Bridge Mode Strange Problem
Post by: franco on May 05, 2015, 09:37:59 pm
Yes, exactly.
Title: Re: [WORKAROUND] Bridge Mode Strange Problem
Post by: macafee on May 12, 2015, 12:26:00 pm
I had retested it. It works very well. Thank you.
Title: Re: [SOLVED] Bridge Mode Strange Problem
Post by: franco on May 12, 2015, 01:21:03 pm
Great, thanks for reporting back! :)
Title: Re: [SOLVED] Bridge Mode Strange Problem
Post by: macafee on May 15, 2015, 11:18:53 am
Today, I updated the system to OPNsense 15.1.10.2 version and retarted the system.

Now the strange problem is still existence. The bug is not fixed.
Title: Re: [SOLVED] Bridge Mode Strange Problem
Post by: franco on May 15, 2015, 11:40:11 am
Did you update via GUI or Console?
Title: Re: Bridge Mode Strange Problem
Post by: macafee on May 18, 2015, 02:51:28 am
updated via console menu 12.
Title: Re: Bridge Mode Strange Problem
Post by: franco on May 18, 2015, 08:56:16 am
Alright, we will discuss this today or tomorrow at our dev meet-up to see if we can solve this. Thanks for keeping us up to date. :)