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

    WAN1 -> Comp1 | WAN2 -> Comp2 (Regardless of traffic type) [SOLVED]

    Scheduled Pinned Locked Moved Routing and Multi WAN
    17 Posts 4 Posters 5.1k 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.
    • M
      Metu69salemi
      last edited by

      This is longshot: manual outbound nat:
      192.168.0.40 /32 as source
      destination to any
      Translation your wanted gateway

      But i've only used this for multiple public ip-addressign so i'm not sure how this would work.

      Usually it could be done by lan rules where you can determine gateway.
      In the rules are also advanced settings for L7, if you have proper rules for L7 trafic (p2p) you could then say
      whatever machine is sending p2p traffic out uses specified gateway

      1 Reply Last reply Reply Quote 0
      • P
        peavers
        last edited by

        Thanks will give it a shot tonight,

        I can't seem to get the logic in my head right about the correct way to do this which really doesn't help.

        The Linux VM just needs to have a different public IP to the server, I think is the best way to describe it. The server and the VM are not used for anything else so matching traffic types shouldn't be a problem if I just set it to any yea?

        1 Reply Last reply Reply Quote 0
        • P
          peavers
          last edited by

          @Metu69salemi:

          Translation your wanted gateway

          Under Translation I only have the option for Interface address and other subnet?

          Edit: I have just found virtual IPs…
          I assume I still want it on the same subnet? i.e giving the WAN adapter an IP of 192.168.0.100 will be okay?

          Edit #2: So obviously I would have to set NAT rules to manual, but I have no clue how I would go about remapping everything manually

          1 Reply Last reply Reply Quote 0
          • M
            Metu69salemi
            last edited by

            Can you please make a drawing of your environment. and make notations what you want to achieve

            1 Reply Last reply Reply Quote 0
            • P
              peavers
              last edited by

              It should be a pretty simple concept.

              I need the blue computer sending out information, but it cannot be using the same WAN/Gateway as the red computer.

              1 Reply Last reply Reply Quote 0
              • I
                ihuntian
                last edited by

                Hi!

                I have almost the same scenario here, mine is simple.

                WAN 1 -> LAN

                WAN 2 -> Captive portal

                No LOAD sharing, probably I will put lusca (LAN, Wireless-CP) if it's possible.

                I just want to separate the WAN's in order for it to be dedicated (LAN, Wireless-CP).

                Hoping someone can help me, badly needed.

                1 Reply Last reply Reply Quote 0
                • M
                  Metu69salemi
                  last edited by

                  @ihuntian, make your own topic
                  @peavers: try this rule: * 192.168.0.40 * * * WAN2 <– simplest possible rule to say linux virtual machine sends anything to blue gateway

                  1 Reply Last reply Reply Quote 0
                  • P
                    peavers
                    last edited by

                    Yup have already tried that, tried all sorts of possible combinations and variations of that rule before I created the thread…

                    1 Reply Last reply Reply Quote 0
                    • P
                      peavers
                      last edited by

                      @Metu69salemi:

                      @ihuntian, make your own topic
                      @peavers: try this rule: * 192.168.0.40 * * * WAN2 <– simplest possible rule to say linux virtual machine sends anything to blue gateway

                      Just tired this again and it worked!

                      You good sir, If you are ever in New Zealand, send me a message and I will shout you a night on the town.

                      +1 For this guy.

                      1 Reply Last reply Reply Quote 0
                      • M
                        Metu69salemi
                        last edited by

                        Maybe i'll travel around a globe someday, but not today. there is no way that personal budget can stand that kind of investment.
                        Good that it was solved. Can you tag first post subject field with [solved] or similar

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