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

    Routing Based on Layer 7

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 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.
    • N Offline
      nrnelson
      last edited by

      Is there a way that I can route certain traffic, based on a layer 7 classification, out a certain interface/tunnel?  Currently I can route certain traffic that is protocol and port specific out of an OpenVPN tunnel without issue (I believe that's called policy based routing?) but for things that don't conform to certain ports, BitTorrent for example, I would like to be able to classify them based on their application layer and route them accordingly.

      I've tinkered around with creating Layer 7 containers and changing with the "Structure" and "Behaviour" settings then trying to apply it to a LAN firewall rule, adjusting the "Layer7" and "Gateway" parameters.  After reading a few posts I am now completely confused, now thinking the "Layer7" option in the firewall rule advanced section is for something completely different.

      Is this possible to do?  If it's not, is there a workaround that should work and would duplicate this functionality?

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        Not possible. The packets are already flowing upon a given path by the time L7 has a chance to classify the traffic. At that point it's impossible for it to re-route the connection since it's already established.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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