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

    Riverbed and pfsense with MultiWAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 1 Posters 294 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.
    • T
      teymur_bagirov
      last edited by teymur_bagirov

      Hello All.

      I use multi wan setups for a long period. Mostly without certain problems. For last couple years have issue with riverbed router.
      When ISP 1 has problems with link pfsense switches to ISP2 (standard approach with Gateway group), but traffic from LAN does not pass until i manually reset all states using Diagnostics -> States -> Reset States
      I've set additional setting "Flush all states when a gateway goes down" in System->Advanced->Miscellaneous, but without success.

      The same picture with switching back from ISP2 to ISP1. Only manual reset states (or rebooting pfsense) restores activity of Riverbed.

      May be "Flush all states when a gateway goes down" reset states only states for LAN interface of pfsense and that's not enough for riverbed which needs reset all states on WANs of pfsense? Because other devices tested at the same environment successfully switch from ISP1 to ISP2 and vice versa.

      Can you advice smth., please?
      May be i can set some checkbox somewhere to force reset all states as it does "Diagnostics -> States -> Reset States"?
      riverbed.png

      1 Reply Last reply Reply Quote 0
      • T
        teymur_bagirov
        last edited by

        Found some solution on the forum and modified sh script which runs every 15 min for.
        ping some host available through riverbed. If no answer then reset states.

        #!/bin/bash
        HOSTS="10.0.20.30"
        COUNT=10
        echo "HOSTS: " $HOSTS
        echo "COUNT: " $COUNT
        for myHost in $HOSTS
        do
          counting=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
          echo "counting: " $counting
          if [ $counting -ge 2 ]
          then
            echo "ping ok"
          else
            echo "reset states"
            pfctl -F state
          fi
        done
        #end
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.