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

    Block Outgoing traffic if Openvpn goes down

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 1.8k 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.
    • S
      Shareria
      last edited by

      Hi,

      congratulations to PFSense. I like it, even if i have a small Problem:

      I'am trying to block outgoing traffic if my OpenVPN not works. My config actually is:
      WAN - WWW Gateway
      LAN - "OpenVPN only Area"

      Is there any way to enable a firewall rule like

      • LAN net * *         * * none   Default allow LAN to any rule
      • WAN net * LAN net * * none   Default allow wan to lan rule
        TCP/UDP * *         * * * none   block all rest

      depending on the OpenVPN Status. It should work like this:
      OpenVPN OK -> rule is enabled, all traffic can pass through
      OpenVPN NOK -> rule disabled, all outgoing lan traffic is blocked

      Greetings
      Shareria

      1 Reply Last reply Reply Quote 0
      • E
        ericab
        last edited by

        *    WAN net    *    LAN net    *    *    none         Default allow wan to lan rule
        

        O___o !!

        1 Reply Last reply Reply Quote 0
        • M
          Metu69salemi
          last edited by

          Haven't done this, but you could try to make openvpn to your gateway or route by lan rule and after that rule block anything.

          1 Reply Last reply Reply Quote 0
          • S
            Shareria
            last edited by

            @ericab: My WAN is behind another HW-router

            @Metu: I tried to make a Gateway but i havent a static openvpn ip and i cant inster an alias as gateway

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