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

    Multi wan load balancing working need traffic from 1 pc to only use WAN2

    Scheduled Pinned Locked Moved Routing and Multi WAN
    11 Posts 3 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.
    • DerelictD
      Derelict LAYER 8 Netgate
      last edited by

      If your inbound 32400 translation is only on WAN2, then it can only be WAN2.  Reply-to should keep your return traffic going out the right interface.

      Not too familiar with plex but if you want connections started by the plex server outbound you need to add a rule on the LAN interface that takes traffic sourced from that IP address (or certain ports, or whatever) and sets the gateway to WAN2 instead of the gateway group.

      This needs to be above the more general rules.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • A
        ash45
        last edited by

        thanks for the reply

        here's a few screen shots of what ive done im kinda new to this and have to say some of the stuff is really baffling when you just used to ISP router where in 2-3 clicks your ports are forwarded and work fine lol

        Firewall rule

        NAT

        Plex error

        Thanks Ash

        ![firewall rule.png](/public/imported_attachments/1/firewall rule.png)
        ![firewall rule.png_thumb](/public/imported_attachments/1/firewall rule.png_thumb)
        ![NAT port.png](/public/imported_attachments/1/NAT port.png)
        ![NAT port.png_thumb](/public/imported_attachments/1/NAT port.png_thumb)
        ![Screenshot 2015-03-24 22.49.43.png](/public/imported_attachments/1/Screenshot 2015-03-24 22.49.43.png)
        ![Screenshot 2015-03-24 22.49.43.png_thumb](/public/imported_attachments/1/Screenshot 2015-03-24 22.49.43.png_thumb)

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          Why did you set a gateway on your associated NAT firewall rule?

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • A
            ash45
            last edited by

            do you mean in the Destination option as i say im new to all this if thats where you mean what should i be putting in there ?

            thanks Ash

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              No.  In the automatically-generated firewall rule you edited it and set the gateway under advanced options to WAN2_GW.  Remove that.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • A
                ash45
                last edited by

                ah right thanks done that, plex still cant access outside world thought, i have successfully managed to forward other stuff but they all goto wan1 which is set as the default dont know if that makes a diff, ive had a look at the settings and they are pretty much identical obviously except the ports/IPs but all the settings are the same, So its just very odd that plex is behaving like this literally its always worked perfect for me straight out of the box,
                It worked perfect in CLEAROS using the source rule to make all traffic from that system go via WAN2 but load balancing is very badly implemented in CLEAROS so id realy like to get things working as i think all round this is a much better OS for the job, just a lot more confusing for newbies lol

                Thanks again Ash

                EDIT

                right just discovered if i change WAN2 to be default plex starts working straight away and the stuff forwarded on WAN1 stop forwarding so i must have a setting some were wrong in the load balance set up ?

                1 Reply Last reply Reply Quote 0
                • DerelictD
                  Derelict LAYER 8 Netgate
                  last edited by

                  The problem is in your rules on the LAN interface plex is on.  Post those.

                  Chattanooga, Tennessee, USA
                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

                  1 Reply Last reply Reply Quote 0
                  • A
                    ash45
                    last edited by

                    here are my lan ones its just what i use for the loadbalancing

                    Thanks Ash

                    ![Screenshot 2015-03-25 00.06.18.png](/public/imported_attachments/1/Screenshot 2015-03-25 00.06.18.png)
                    ![Screenshot 2015-03-25 00.06.18.png_thumb](/public/imported_attachments/1/Screenshot 2015-03-25 00.06.18.png_thumb)

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      Right.  Above the LB rule you need one that sends connections from plex to just WAN2.  I don't know how you would define "traffic from plex" either just the source IP address of the plex server, or maybe the source IP address and a subset of source ports.

                      You do know the 3rd and 4th rules will never be processed right?

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by

                        @ash45:

                        i have a multiwan setup with load balancing and fail over both of these work perfect

                        But not really needed, because if one of the WAN interfaces is dying or fails the entire traffic
                        is routed through the other WAN interface, so you got fail over on top by using load balancing.

                        And there are three main possibilities to load balance.

                        • session based load balancing
                        • service based load balancing
                        • policy based routing

                        So that would be enough to solve the problem, or?

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