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

    Can I determine a rule based upon another state ?

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 1.6k 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.
    • K
      koalaboy
      last edited by

      Hi,

      I want to setup some rules such that, for example, traffic can only pass through to a local port if the remote host already has a connection to another local port:

      Remote tries to connect to port 1234 - only allowed if they already have a valid connection to port 3456

      or

      Remote tries to connect to port 1234 - only allowed already a local connection out to remote on port 5678

      I have a feeling this isn't possible, but I thought I'd check. If not, does anyone have suggestions what I can use to achieve this ?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        Not possible.

        Why would you want that?
        For "security"?

        Set up a VPN if you need secure access.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • K
          koalaboy
          last edited by

          Thanks for the clarification.

          I'd want it for port-knocking, or for allowing servers which I connect to (and therefore approve) connect back for additional services whilst I'm connected to them.

          It's not a scenario that's used too often, but it's nice to be able to handle it.

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG
            GruensFroeschli
            last edited by

            Search the forum about port-knocking.
            There have been discussions about that, and why it's not such a good idea.

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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