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

Traffic through another wan, 2WAN 1LAN 1VLAN

NAT
2
30
4.2k
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.
  • G
    GDSF
    last edited by Feb 10, 2023, 11:33 AM

    Good morning guys I would like some help to have a solution.

    I have the following scenario:

    WAN1 (Dynamic Public IP) and WAN2 (Fixed Public IP)
    LAN (Internal Network)
    -VLAN10 (Servers)

    My LAN normally travels through the Gateway group where we have: WAN1 (tier1) and WAN2 (tier2) but now I need my VLAN10 to travel through WAN2. while the rest of the network continues to travel over WAN1

    Would you like help on how to do this? I tried to create some firewall rules, Nat outbound, and Port Forwand, I tried to put the default gateway in the advanced settings of the rules but I don't get it right. my VLAN10 continues to go out through the public ip of WAN1... if someone already has this configured could you give me examples please. thanks and any help is welcome.

    sorry my english

    V 1 Reply Last reply Feb 10, 2023, 12:43 PM Reply Quote 0
    • V
      viragomann @GDSF
      last edited by Feb 10, 2023, 12:43 PM

      @gdsf
      You have to policy-route the upstream traffic to WAN2.
      This means to have to edit the pass rule on VLAN10, which allows upstream traffic and state the WAN2 gateway in the advanced options.

      However, to apply this rule to upstream traffic only as said, create an alias for private networks if you don't have any already, call it say RFC1918 and add all RFC 1918 networks to it.
      Then in the rule above at destination check "invert match" and state this alias. So this rule is only applied to traffic which is not destined to private IPs.

      Consider to add an additional rule to allow access to internal destinations like DNS, since the rule above now only cover upstream traffic.

      G 1 Reply Last reply Feb 10, 2023, 1:04 PM Reply Quote 0
      • G
        GDSF @viragomann
        last edited by Feb 10, 2023, 1:04 PM

        @viragomann
        thanks for helping me friend Will you not need to do some kind of NAT too?

        login-to-view

        V 1 Reply Last reply Feb 10, 2023, 1:13 PM Reply Quote 0
        • V
          viragomann @GDSF
          last edited by Feb 10, 2023, 1:13 PM

          @gdsf
          Cannot think of any use of NAT in this context. You're simply directing traffic out on a non-default WAN.
          You need for sure an outbound NAT rule on WAN2, when directing packets out. But since you said, you're already successfully using WAN2 in the failover group, this should be given already.

          G 1 Reply Last reply Feb 10, 2023, 1:26 PM Reply Quote 0
          • G
            GDSF @viragomann
            last edited by Feb 10, 2023, 1:26 PM

            @viragomann yes, in the failover group, if WAN1 goes offline WAN2 works fine.

            however, even configuring this VLAN as a default gateway on my WAN2, it continues with the public ip of WAN1

            V 1 Reply Last reply Feb 10, 2023, 1:35 PM Reply Quote 0
            • V
              viragomann @GDSF
              last edited by Feb 10, 2023, 1:35 PM

              @gdsf
              Go to Status > Gateway and check if the WAN2 gateway is online.

              G 1 Reply Last reply Feb 10, 2023, 1:46 PM Reply Quote 0
              • G
                GDSF @viragomann
                last edited by Feb 10, 2023, 1:46 PM

                @viragomann yes :( if you want I can print other NAT or Firewall rules for you to have a better view

                login-to-view

                V 1 Reply Last reply Feb 10, 2023, 1:51 PM Reply Quote 0
                • V
                  viragomann @GDSF
                  last edited by Feb 10, 2023, 1:51 PM

                  @gdsf
                  I'm not familiar with your language, but it seems to me that the status there says "not monitored".

                  You have to enable gateway monitoring if using multiple WANs, otherwise the failover group don't work.

                  G 1 Reply Last reply Feb 10, 2023, 2:09 PM Reply Quote 0
                  • G
                    GDSF @viragomann
                    last edited by Feb 10, 2023, 2:09 PM

                    @viragomann It means that the link is up

                    V 1 Reply Last reply Feb 10, 2023, 2:11 PM Reply Quote 0
                    • V
                      viragomann @GDSF
                      last edited by Feb 10, 2023, 2:11 PM

                      @gdsf
                      Ok. Can you please post a sreenshot of Status > Gateways as requested?

                      G 1 Reply Last reply Feb 10, 2023, 2:15 PM Reply Quote 0
                      • G
                        GDSF @viragomann
                        last edited by Feb 10, 2023, 2:15 PM

                        @viragomann here is the table

                        login-to-view

                        V 1 Reply Last reply Feb 10, 2023, 2:18 PM Reply Quote 0
                        • V
                          viragomann @GDSF
                          last edited by Feb 10, 2023, 2:18 PM

                          @gdsf
                          Why are there commas in the monitoring IP?
                          I don't expect that this can be used.

                          G 1 Reply Last reply Feb 10, 2023, 2:20 PM Reply Quote 0
                          • G
                            GDSF @viragomann
                            last edited by Feb 10, 2023, 2:20 PM

                            @viragomann for some reason google translator put it, but when it left the native language it has dots

                            V 1 Reply Last reply Feb 10, 2023, 2:24 PM Reply Quote 0
                            • V
                              viragomann @GDSF
                              last edited by Feb 10, 2023, 2:24 PM

                              @gdsf
                              Google translator modifies a screenshot??

                              So the WAN2 gateway is online, but traffic still goes out on WAN1 from VLAN10, even there is a policy routing rule. Or your outbound NAT doesn't work properly.

                              Can you post a screenshot a screeshot of the outbound NAT page, please?

                              G 1 Reply Last reply Feb 10, 2023, 2:31 PM Reply Quote 0
                              • G
                                GDSF @viragomann
                                last edited by Feb 10, 2023, 2:31 PM

                                @viragomann I made an exit rule like this

                                login-to-view

                                So this is the rule

                                login-to-view

                                And this is my Virtual IP rule

                                login-to-view

                                V 1 Reply Last reply Feb 10, 2023, 2:40 PM Reply Quote 0
                                • V
                                  viragomann @GDSF
                                  last edited by Feb 10, 2023, 2:40 PM

                                  @gdsf said in Traffic through another wan, 2WAN 1LAN 1VLAN:

                                  I made an exit rule like this

                                  That's the wrong interface. It must be WAN2.

                                  G 1 Reply Last reply Feb 10, 2023, 2:50 PM Reply Quote 0
                                  • G
                                    GDSF @viragomann
                                    last edited by Feb 10, 2023, 2:50 PM

                                    @viragomann I did that, it still didn't work, I have a doubt, does the VIP need to be /29?

                                    V 1 Reply Last reply Feb 10, 2023, 2:56 PM Reply Quote 0
                                    • V
                                      viragomann @GDSF
                                      last edited by Feb 10, 2023, 2:56 PM

                                      @gdsf
                                      If you've got a /29 from the ISP you should set a /29 mask, of course.

                                      But if that's really an issue depends on the gateway, if it accepts packets from this IP.
                                      If the gatway responses to pings you can simply try it out in Diagnostic > Ping.
                                      You can select the VIP as source and send pings to the gw from it.

                                      G 1 Reply Last reply Feb 10, 2023, 4:08 PM Reply Quote 0
                                      • G
                                        GDSF @viragomann
                                        last edited by GDSF Feb 10, 2023, 4:10 PM Feb 10, 2023, 4:08 PM

                                        @viragomann Do you know if there's a way to find this out?

                                        I tried calling my provider but the service is terrible

                                        I got access to the router but I don't know if it's possible to discover the range, but it has the ip, gateway and dns info

                                        I did a test on the https://who.is/whois/ site and it said that my range is /8

                                        V 1 Reply Last reply Feb 10, 2023, 4:23 PM Reply Quote 0
                                        • V
                                          viragomann @GDSF
                                          last edited by Feb 10, 2023, 4:23 PM

                                          @gdsf said in Traffic through another wan, 2WAN 1LAN 1VLAN:

                                          Do you know if there's a way to find this out?

                                          As said, ping with source option. Try the gateway and a public IP like 8.8.8.8.
                                          You can capture the packets on WAN2 while pinging to see if pfSense uses the correct source.

                                          G 1 Reply Last reply Feb 10, 2023, 4:29 PM Reply Quote 0
                                          2 out of 30
                                          • First post
                                            2/30
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.