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

    MUTLI WAN & NAT ??? [SOLVED - Reply#10]

    Scheduled Pinned Locked Moved Routing and Multi WAN
    40 Posts 5 Posters 9.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.
    • D
      dimkyson
      last edited by

      Some screenshots would be nice. ( NAT / LAN / WAN / Outbound NAT )

      1 Reply Last reply Reply Quote 0
      • R
        robtoronto
        last edited by

        Ok will get you some screenshots ,np.

        Ok so I have just tried

        (WAN)
        SERVER 1 (Port80) –------------->                                              --------------> WAN1
                                                          SWITCH  ----------->  PFSENSE
        SERVER 2 (Port22) --------------->                                              --------------> WAN2
                                                                                                      (OPT1)

        what I tried in my first post was

        (WAN)
        SERVER 1 (Port80) --------------->                                              --------------> WAN1
                                                          SWITCH  ----------->  PFSENSE
        SERVER 1 (Port80) --------------->                                              --------------> WAN2
                                                                                                      (OPT1)

        ALSO

        (WAN)
        SERVER 1 (Port80) --------------->                                              --------------> WAN1
                                                          SWITCH  ----------->  PFSENSE
        SERVER 1 (Port22) --------------->                                              --------------> WAN2
                                                                                                      (OPT1)

        What I have noticed , I think it's a problem wit NAT on the OPT1 interface... It doesn't matter if I use the same LAN IP or a differnet one, the port wont open on the OPT1 interface...and yes I have the services running ;)

        WiFi

        LAN

        Got Speed?

        1 Reply Last reply Reply Quote 0
        • R
          robtoronto
          last edited by

          right now I have my Firewall: NAT: Outbound to:

          Automatic outbound NAT rule generation
                   (IPsec passthrough included)


          and there are 4 DNS servers there, I just removed 3 of them for the screenshot.

          WiFi

          LAN

          Got Speed?

          1 Reply Last reply Reply Quote 0
          • R
            robtoronto
            last edited by

            So I have gone out and purchased another NIC so now I have tried
                            LAN2 .167 (port22)            .167
                            –------------->                -------->            ------------->WAN
            SERVER 1                          SWITCH            PFSENSE
                            --------------->                -------->            ------------->WAN2 (OPT1)
                            LAN1 .168 (port80)            .168

            So I have done that above , 2 complete separate NIC cards for 2 different LAN segments and have even set the gateways separate LAN1 gets WAN GW , LAN2 gets WAN2 GW

            The port still wont open?!?

            here is my firewall logs when I try to check the port from say http://www.yougetsignal.com/tools/open-ports/

            WiFi

            LAN

            Got Speed?

            1 Reply Last reply Reply Quote 0
            • R
              robtoronto
              last edited by

              Ok so I have done the exact same setup as above . I am not sure why I didn't come to be before.. I clicked the Act of the blocked rule of port 22, there was a 1 scrub on all fragment reassemble block and a block all.. I used the easy rule pass and i disabled scrub and I am not getting firewall block logs for port 22 now when I check to see if it is open.. ( the port still shows closed when I check it ) when I check say port 9191 that is open on WAN1 and not WAN2 , I get the block rule and thats perfect, if i check the port against WAN1 , its open and all is fine.

              On my default route page how can I change the default route gateway to the MultiWAN group I have made, Right now it it set for the WAN gateway only…even thou LAN traffic is LB via multiWAN gw rule on LAN... I'm a little confused now..

              WiFi

              LAN

              Got Speed?

              1 Reply Last reply Reply Quote 0
              • R
                robtoronto
                last edited by

                OK! So I have " Fixed " it.. The issue was just as I figured in my last post.. on the Diagnostics: Routing tables page, The Default route was the " WAN PORT" IP.. I changed my default gateway to my OPT1 Interface and now the default route ip shows the OPT1 IP. Now I am able to reach any port I open from both WAN and OPT1 Ip's …. This is clearly a bug in PFSense, There should be a way to change the default route to a gateway group..this would solve the problem I think.. :) Well my issue is solved correct workaround or not... it's a fix for now..

                WiFi

                LAN

                Got Speed?

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

                  When i change the default gateway to OPT1, then everything i opend on WAN1 dont work anymore…

                  1 Reply Last reply Reply Quote 0
                  • R
                    robtoronto
                    last edited by

                    Hey Marv, Here is my full config. I even have ICMP setup on this just so you can check from an external source if ur even able to ping the ip. It's all working very well for me now. nslookup on the domain resolves both ip's and load balancing is working great.

                    a link to the image for full size
                    http://m37offroading.ca/fullconfig.png

                    WiFi

                    LAN

                    Got Speed?

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

                      Thanks for ur Time.
                      But i doesnt work for me ;/
                      I have no floating rules…

                      The Rule is linked?? Yours not, what is this?

                      My Pfsense Version is 2.0.2-Release i386

                      I just want to have access to 8059 from the outside, over the FritzboxWAN ;(
                      Without Failover and only Fritzbox connectet it works fine ;(

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

                        If i Set the Fritzbox Wan to default it works, but then every Portforwarding on the Unitymedia WAN is unable to reach :/

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

                          If I do this it works, with default on WAN…(pic)

                          I cant forward ports on WAN, i can do verthing, it never works...

                          Iam freaking out  :D

                          replaced.png
                          replaced.png_thumb

                          1 Reply Last reply Reply Quote 0
                          • R
                            robtoronto
                            last edited by

                            Well I see a couple things wrong,

                            your Gateway group, Set both to Tier 1,

                            For the Firewall: NAT: Port Forward Page, On the configuration of the port 8059 go the the Filter rule association and make that None, Also NAT Refection , Enabled ( if you want to be able to access it from internal also)

                            Firewall: Rules, See mine above, See how I have rules in ever NIC and a Floating DNS failover rule, Include all these rules.

                            Leave your gateways leave as no default as it is in the screenshot.

                            This should work, I have successfully re-installed 2.0.1 -> upgraded to 2.0.2 and did my rules again and it all works perfect with no trouble. If you need more help PM me your email and we can get you up and working.

                            The Fix is above thou , that works and tested twice on 2 installs. :)

                            WiFi

                            LAN

                            Got Speed?

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

                              okay, thank you.
                              I will try this tommorow.
                              Ist just Failover not LoadBalancing, so Tier 1 and 2 is correct , or?

                              1 Reply Last reply Reply Quote 0
                              • R
                                robtoronto
                                last edited by

                                No that is not correct, Please marv, follow my screenshots very carefully and match everything the same as your config. It will work ! :)

                                WiFi

                                LAN

                                Got Speed?

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

                                  Ty for your Time, but I have to say that you are wrong ;/
                                  Both on Tier1 is LoadBalancing, i got then two IP, when i checked my Ip in the internet.
                                  I installed Pfsene again with CD now (therefore i did this over memstick.img).
                                  Now it works, why ever oO ::)
                                  The only things i did after the newinstall was. Setting the Gateways on Tier 1 &2, named it Failover, Add a (one) Nat-Rule- with assiocated Firewallrule. And add in the "lan to any" rule, the Failover Gateway.

                                  Works.

                                  But thank you for help so far

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

                                    @robtoronto:

                                    OK! So I have " Fixed " it.. The issue was just as I figured in my last post.. on the Diagnostics: Routing tables page, The Default route was the " WAN PORT" IP.. I changed my default gateway to my OPT1 Interface and now the default route ip shows the OPT1 IP. Now I am able to reach any port I open from both WAN and OPT1 Ip's …. This is clearly a bug in PFSense, There should be a way to change the default route to a gateway group..this would solve the problem I think.. :) Well my issue is solved correct workaround or not... it's a fix for now..

                                    Ok I figured out, what is different to my others installations, i swapped the WAN Interface in this Installation.
                                    If the 2WAN is the one with the higher priority in the Gateway Group all is ok, is the first WAN-Interface with higher Prioty nothing works anymore.
                                    Thats truly a bug.

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      robtoronto
                                      last edited by

                                      Marv! I am glad you figured it out… This is very much a bug and I have noticed the same thing... I was not 100% Sure that was what was fixing it the first time I got it working.. Doing that the second time It did not work..then I got my config that I have posted in reply 10 and it works great, with a re-install.. I just tried it AGAIN after you said this because I know for a FACT I had to do the same exact thing.

                                      WiFi

                                      LAN

                                      Got Speed?

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        Efonnes
                                        last edited by

                                        I don't have enough experience with multi-WAN to be able to just spot the issue, but I do know of one potential issue I had seen in the rules someone mentioned.  As far as I know, "Pass" on port forwards bypasses the firewall rules, likely including the ones specifying which gateway to use.  Firewall rules should be used instead of directly using "Pass" on port forwards if you have any special firewall rules with gateway settings.  The same may apply to limiters or traffic shaping.  Depending on how your rules are set up, you may need to duplicate some of the settings to the linked rules for your port forwards (I'm not certain of this, though).

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

                                          Indeed, using "pass" on rdr will not give them the proper reply-to behavior to work with multi-wan.

                                          Use a linked rule instead.

                                          And if your WAN is a static IP type, make sure you have the gateway selected on the interface config so that the firewall will treat the interface as a WAN (this happens automatically for DHCP/PPPoE/etc) and put reply-to on the firewall rules.

                                          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
                                          • M
                                            Marv21
                                            last edited by

                                            @jimp:

                                            Indeed, using "pass" on rdr will not give them the proper reply-to behavior to work with multi-wan.

                                            Use a linked rule instead.

                                            And if your WAN is a static IP type, make sure you have the gateway selected on the interface config so that the firewall will treat the interface as a WAN (this happens automatically for DHCP/PPPoE/etc) and put reply-to on the firewall rules.

                                            Yeah, did that :)
                                            Fact is, that i got problems with the WAN1 as Default.
                                            Lets say WAN1 is UM(the internetprovider)
                                            Lets say WAN2(opt1) is 1und1.
                                            If UM is default on WAN1 it doesnt work.
                                            If i swap the assignement and UM is on WAN2 everything works well, with exact the same rules.

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