• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.9k 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 Offline
    Shareria
    last edited by Jul 29, 2011, 7:39 PM

    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 Offline
      ericab
      last edited by Jul 29, 2011, 8:29 PM

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

      O___o !!

      1 Reply Last reply Reply Quote 0
      • M Offline
        Metu69salemi
        last edited by Jul 29, 2011, 9:32 PM

        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 Offline
          Shareria
          last edited by Jul 29, 2011, 10:09 PM

          @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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received