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

    pfSense and meraki z3

    Scheduled Pinned Locked Moved General pfSense Questions
    64 Posts 10 Posters 14.2k 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.
    • JKnottJ
      JKnott @wyzard
      last edited by

      @wyzard said in pfSense and meraki z3:

      I agree with everyone that this should not be that hard. I my mind should be a simple plug and play.

      As I mentioned, this appears to be a device intended to replace a consumer router/firewall, not be used behind it. That it works without pfSense shows this. Another thing you could try is put a consumer grade router/firewall ahead of it. If that works, then some investigation may reveal what the problem is.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

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

        @wyzard said in pfSense and meraki z3:

        It seemed to me that the 10.124.x.x was the static IP of the Meraki.

        Where did you get that from? It wouldn't be able to do anything if that was its IP of its wan, and if that is is lan IP, your outbound nat wouldn't do shit..

        The IT department at my wife's work can "see" the Meraki when it is behind the pfsense. For some reason the Meraki can't get "back" to them.

        If they can see it, then it CAN get back to them..

        The PC that is connected to the Meraki is not getting an IP address.

        Then how would it be saying its attempting to authenticate...

        Answer some basic questions.. from pfsense does it hand out an IP address to this device? If so what is it?

        When you connect a PC to the lan side of it.. lets see the IPconfig /all from this device...

        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 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • W
          wyzard @JKnott
          last edited by

          @JKnott said in pfSense and meraki z3:

          @wyzard said in pfSense and meraki z3:

          I agree with everyone that this should not be that hard. I my mind should be a simple plug and play.

          As I mentioned, this appears to be a device intended to replace a consumer router/firewall, not be used behind it. That it works without pfSense shows this. Another thing you could try is put a consumer grade router/firewall ahead of it. If that works, then some investigation may reveal what the problem is.

          I agree about it replacing a router/firewall. I don't want to send all my traffic through that though. Not that I have anything to hide, but according to the installation instructions that were sent home with my wife, this should plug into the existing router and work. And, as I said, her IT department is pretty much useless.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yeah, where exactly did the 10.124.31.200 IP address come from?

            That cannot be the Z3 WAN side since it is connecting out partly. It must, therefore, be it's LAN.

            In which case, as johnpoz said, you need to find what IP address in your LAN subnet the Z3 is pulling and add that as the source address in the outbound NAT rule(s).

            I'm pretty that static outbound NAT rule is all you need to make this work. It just has to be the right rule.

            Steve

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

              @stephenw10 said in pfSense and meraki z3:

              It just has to be the right rule.

              Or as you already stated just set all to static.. That would be a great test..

              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 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • W
                wyzard
                last edited by

                Thank you everyone for your help! Finally figured what the IP it was getting from my network. Entered a rule with the information and it's working!

                Thanks again to everyone for the help and guidance.

                B P 2 Replies Last reply Reply Quote 1
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Nice. 👍

                  1 Reply Last reply Reply Quote 0
                  • B
                    BlankSpace @wyzard
                    last edited by

                    @wyzard

                    Would you mind sharing the rule you made? I seem to be having the same issue but with a Meraki MX68.

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      It was a static source port outbound NAT rule specific to the source IP the Meraki was using.

                      It seems as though the Meraki VPN chokes if the source port changes.

                      Steve

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

                        @stephenw10 said in pfSense and meraki z3:

                        It seems as though the Meraki VPN chokes if the source port changes.

                        Which is just a horrible horrible design!!

                        Not sure which one ticks me off more, static source ports or hard coding IPs

                        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 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • B
                          BlankSpace
                          last edited by

                          Thanks, I got it with the above mentioned rules. Had to sift through states to find port #'s but once I added all of them to the alias I created for the rule, it was good to go.

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

                            Lets throw a 3rd one in to my list of pet peeves ;)

                            Game companies that are unable to correctly document the ports needed for their game to work.. They list ports, but don't say if its inbound or outbound, like 53 - that sure and the F is not needed inbound!! Same with 80... If that was required inbound most people wouldn't be able to play, since most home connections the isp blocks 80 inbound.

                            How hard would it be to list the ports required outbound, and inbound (port forward) and if any traffic requires static ports..

                            And a side to that - how about just actually leveraging IPv6 so all this nat shit goes away for your games where the users have IPv6.

                            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 24.11 | Lab VMs 2.8, 24.11

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Yup, and not restricted to games either. I can't tell the number of times I've seen a huge list of forwarded ports that have zero business being there. 🙄

                              Steve

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

                                I mean really, I create an app that talk to another app via port X.. How about listing these X ports - I mean really you wrote the freaking thing... Are you not using the same internet that everyone else on the planet is using where ports inbound are blocked via nat?

                                Its just freaking crazy - how F'king hard is that - I mean really!!! Its not like we using different shit here.. Your isp does really the same thing that isp Y does down the street.. Clearly list

                                Port forward
                                X
                                Y
                                Z

                                Outbound
                                A
                                B
                                C..

                                Is that asking that much??

                                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 24.11 | Lab VMs 2.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • C
                                  crs162
                                  last edited by crs162

                                  I have one addition to instructions above.

                                  First, thank you all for contributing to this forum. You guys helped me get my Meraki Z3 working with my Pfsense. Wanted to share some additional info, in the hopes it will save somebody else time. To make it work for the Meraki Z3 I got from my company. These servers are owned by my company and apparently we do something special - so just FYI.

                                  Additonal outbound NAT rules for the Meraki to the following destinations:

                                  • UDP to IP:XXX.XXX.XXX.XXX port 50881
                                  • UDP to IP:XXX.XXX.XXX.XXX port 48708

                                  Tally ho!

                                  B 1 Reply Last reply Reply Quote 1
                                  • P
                                    pfsauce @wyzard
                                    last edited by

                                    @wyzard said in pfSense and meraki z3:

                                    Thank you everyone for your help! Finally figured what the IP it was getting from my network. Entered a rule with the information and it's working!

                                    Thanks again to everyone for the help and guidance.

                                    Could you please screenshot and post exactly what all you opened to get it working including inbound and outbound? TIA

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      The only thing that was required was an outbound NAT rule for the devices internal IP with static source ports set.

                                      Steve

                                      P 1 Reply Last reply Reply Quote 1
                                      • P
                                        pfsauce @stephenw10
                                        last edited by

                                        @stephenw10 You're correct, thanks. I just had my port wrong. My port was 50716. I actually also found a few other ports in states, but only needed this one enabled after adding them all.

                                        1 Reply Last reply Reply Quote 1
                                        • B
                                          beanska @crs162
                                          last edited by

                                          @crs162 I am struggling with this right now. Could you post your NAT rules?

                                          C 1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            It requires only an outbound NAT rule with static source ports set for connections from the z3.

                                            That could be further limited to only the known destination IPs (if you know them) but it doesn't really matter since there won't be many connections from it.

                                            https://docs.netgate.com/pfsense/en/latest/nat/outbound.html#static-port

                                            Steve

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