Floating Rule assistance (block specific traffic when VPN down)

  • I am trying to configure a floating rule to block traffic (WAN) from a specific IP/port ( when VPN (PIA) goes down, but still allow everything else via WAN on same IP (

    Floating rule configuration:

    Action: block
    Interface: WAN
    Direction: Any
    TCP/IP Version: IPv4
    Protocol: TCP/UDP
    Source port range (to&from): 47864
    Destination: any
    Destination port range: any
    log: checked
    Description: Kill WAN if VPN DOWN

    FAIL: tested by disabling openvpn, then watched as the traffic resumed on WAN.

    Thanks for help all!

  • LAYER 8 Netgate

    Floating rules on WAN out are post-NAT so you can't match on the source address. It's already been translated.

    Mark the traffic on the rule that sends it to the VPN in the first place then block that mark on WAN out.


Log in to reply