Navigation

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

    Re Routing

    NAT
    2
    11
    109
    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.
    • T
      tobijuan last edited by

      Can i use PFsense to re route packets based on the application that a user uses using NAT?

      1 Reply Last reply Reply Quote 0
      • johnpoz
        johnpoz LAYER 8 Global Moderator last edited by

        You mean policy route.. ie send some traffic out wan 1, and other traffic out wan 2?

        Yeah you can do that based upon a few different criteria.. The destination port could be used as criteria for routing specific traffic.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 23.01 | Lab VMs CE 2.6, 2.7

        T 1 Reply Last reply Reply Quote 1
        • T
          tobijuan last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • T
            tobijuan @johnpoz last edited by

            @johnpoz

            Thanks for the reply :)

            To further explain my question what i mean is that if a user uses a certain type of application which is i consider as a priority its packets will go to the high priority route but if i consider it as a low priority it will go to the other route. Does policy route do that?

            1 Reply Last reply Reply Quote 0
            • johnpoz
              johnpoz LAYER 8 Global Moderator last edited by johnpoz

              Again you can use all kinds of things to determine what goes where... Yes you could have port 80 go out wan 1, port 443 go out wan 2 or vpnX, etc.

              You could also use dest IP, or source IP or a combo of both, or even source port to determine which gateway is used.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 23.01 | Lab VMs CE 2.6, 2.7

              T 1 Reply Last reply Reply Quote 1
              • T
                tobijuan @johnpoz last edited by

                @johnpoz

                Thank you! i'm planning to use openappid results to determine what route will the packets go

                1 Reply Last reply Reply Quote 0
                • johnpoz
                  johnpoz LAYER 8 Global Moderator last edited by

                  While that "might" be possible - how exactly are you going to mark the packets before the routing decision is made?

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 23.01 | Lab VMs CE 2.6, 2.7

                  T 1 Reply Last reply Reply Quote 1
                  • T
                    tobijuan @johnpoz last edited by

                    @johnpoz

                    That's the problem as of the moment I don't have any idea yet

                    1 Reply Last reply Reply Quote 0
                    • johnpoz
                      johnpoz LAYER 8 Global Moderator last edited by

                      Your going to be best off asking such a question in the snort (ips) section most likely... Off the top of my head - not seeing how your going to mark the packets.. Sure if the traffics were marked before they got evaluated then sure you could route them out a specific gateway.

                      So these "apps" your wanting to route - you don't know a dest IP or port?

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 23.01 | Lab VMs CE 2.6, 2.7

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        tobijuan @johnpoz last edited by

                        @johnpoz

                        Maybe i can create a topology that has 2 different routers So i can assign a dest IP/port , then i can send high priority apps to the faster one and low priority apps to the other one?

                        1 Reply Last reply Reply Quote 0
                        • johnpoz
                          johnpoz LAYER 8 Global Moderator last edited by

                          @tobijuan said in Re Routing:

                          So i can assign a dest IP/port

                          Why would you need more than 1 router... If you know the dest IP and or port - then you can just create the firewall rule in pfsense to send it where you want "gateway"

                          Give an example of application your trying to route.. How is it you would need appID to determine what it is?

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 23.01 | Lab VMs CE 2.6, 2.7

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post