Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bridge + CARP

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    2 Posts 1 Posters 880 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      frans kurniawan
      last edited by

      hi all..

      im trying to setup CARP and Bridge at WAN section using pfsense ver 2.31..
      i setup VIP CARP WAN , Bridge on WAN with RSTP enable (bridge0 = igb1, igb2, igb3)..

      the bridge was OK and capable to do failover between the interface within the bridge..
      the problem occurred when all interface under bridge were down, the bridge it self still UP !

      then i try to make it down manually via devd by adding some command to devd.conf

      notify 100 {
              match "system"          "IFNET";
              match "type"            "LINK_DOWN";
              match "subsystem" "igb1";
              action "/usr/local/bin/bridgedown";
      };

      then create script /usr/local/bin/bridgedown :

      #!/bin/sh
      echo "bridge0 down"
      /sbin/ifconfig bridge0 down

      chmod a+x /usr/local/bin/bridgedown

      then restart / rebooting to implement the new setting..

      but when i unplug the cable of igb1, the script doesn't executed..
      even when i try to execute it manually via shell , it failed to execute..

      /usr/local/bin/bridgedown: Command not found.

      am i missing something?

      i try to make another shell script, but none of them are able to execute..
      does pfsense prevent the execution of individual shell script?
      :-\

      thank you

      1 Reply Last reply Reply Quote 0
      • F Offline
        frans kurniawan
        last edited by

        i already found the problem..
        it is due to i used windows text editor to make the script (CR LF)
        after saving the script file using UNIX (LF only) , the script successfully executed..

        thx

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.