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

    Unable to ping between lan and opt

    Routing and Multi WAN
    6
    40
    2.6k
    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.
    • B
      bgksdfol @the other
      last edited by

      @the-other said in Unable to ping between lan and opt:

      c) ping ubuntu from your pi?

      I can ping both from pfsense, but can't ping the pi from ubuntu and vice versa

      J V johnpozJ 3 Replies Last reply Reply Quote 0
      • J
        Jarhead @bgksdfol
        last edited by

        @bgksdfol Just to note, your "test" rule is literally the same as the rule below it. If you put a rule on the LAN, and set the source as any, it's the same as setting the source as LAN net.

        Do this on both devices.
        sudo ufw disable

        Try to ping. If successful do
        sudo ufw enable

        Then set firewalls as needed.

        B 1 Reply Last reply Reply Quote 0
        • V
          viragomann @bgksdfol
          last edited by

          @bgksdfol
          Can you ping

          • pfSense LAN IP from the Pi
          • pfSense OPT1 IP from Ubuntu
            ?
          B 1 Reply Last reply Reply Quote 0
          • B
            bgksdfol @Jarhead
            last edited by

            @jarhead Tried. The pi doesn't recognise the ufw. The same error as the original post

            1 Reply Last reply Reply Quote 0
            • B
              bgksdfol @viragomann
              last edited by

              @viragomann Pinging the lan ip from the pi gives the same error as the original message.

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @bgksdfol
                last edited by

                @bgksdfol
                So I guess that the network settings are wrong on the Pi. Check it's gateway and network mask.

                B 1 Reply Last reply Reply Quote 0
                • B
                  bgksdfol @viragomann
                  last edited by

                  @viragomann said in Unable to ping between lan and opt:

                  So I guess that the network settings are wrong on the Pi. Check it's gateway and network mask.

                  1. How do I do this?
                  2. Would the same possibility be a thing on the Ubuntu box
                  V 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @bgksdfol
                    last edited by johnpoz

                    @bgksdfol said in Unable to ping between lan and opt:

                    I can ping both from pfsense

                    If you can ping from pfsense opt IP, but not from lan IP from pfsense.. this points to couple of things it could be.

                    1. your pi has no gateway or the wrong gateway.. Should be pfsense opt1 IP.
                    2. Possible issue with the pi mask.. Where it thinks the lan IP on its same network. For example if using a /16 and your lan is 192.168.x and your opt is 192.168.y
                    3. firewall on the pi..

                    So to prove to yourself its the pi not answering - just do a simple packet capture on the opt interface while you ping from the lan network.. Do you see the ping going out via you packet capture.. If so then for whatever reason the pi didn't answer..

                    edit: is your pi getting dhcp from pfsense, or did you set it IP statically on the pi?

                    On the pi you can do this to check its gateway and mask..

                    pi.jpg

                    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.7.2, 24.11

                    B 1 Reply Last reply Reply Quote 0
                    • V
                      viragomann @bgksdfol
                      last edited by

                      @bgksdfol
                      You should at least be able to ping all interfaces of pfSense with the allow any rules.
                      If you only can ping the the interface IP, which the device is connected to, I would suspect that there is something wrong with the network settings, either on the device or on pfSense.

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bgksdfol @johnpoz
                        last edited by

                        @johnpoz 1) pi mask is 255.255.255.0
                        2) Both are on a /24 mask
                        3) The pi doesn't seem to have ufw installed

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • B
                          bgksdfol @viragomann
                          last edited by

                          @viragomann Any suggestion on what to check?

                          chpalmerC B 2 Replies Last reply Reply Quote 0
                          • chpalmerC
                            chpalmer @bgksdfol
                            last edited by

                            If a client device cannot ping its gateway then try another client device in its place. If that device can ping its gateway then you have ruled out your router as the problem.

                            If that new device still cannot ping a gateway then you can figure a configuration issue on your router.

                            Triggering snowflakes one by one..
                            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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

                              @bgksdfol said in Unable to ping between lan and opt:

                              pi mask is 255.255.255.0

                              And is the gateway correct?

                              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.7.2, 24.11

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

                                @bgksdfol It can ping its gateway, but not the gateway of the other lan port on the router

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bgksdfol @johnpoz
                                  last edited by

                                  @johnpoz It is 0.0.0.0 so I am going to assume not

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

                                    @bgksdfol said in Unable to ping between lan and opt:

                                    It is 0.0.0.0 so I am going to assume not

                                    That would default destination - but the IP, ie the gateway is what when you do a route -n

                                    See my above screenshot from my pi..

                                    My gateway is 192.168.3.253, which is pfsense IP on that vlan. if you don't your gateway pointing to pfsense IP on this network, then no your never going to ping anything off its network, nor would you be able to answer anything coming from another network.

                                    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.7.2, 24.11

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      bgksdfol @johnpoz
                                      last edited by

                                      @johnpoz The Destination is 40.0
                                      Gateway is 0.0.0.0
                                      mask is 255.255.255.0

                                      How do I correct the gateway?

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

                                        @bgksdfol why don't you just set the pi to get its IP via dhcp?

                                        Pretty sure that is the default, if you want your pi to always have the same IP - you can just easy set a reservation in pfsense dhcp server. Is that what you did and you put in some gateway there?

                                        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.7.2, 24.11

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          bgksdfol @johnpoz
                                          last edited by bgksdfol

                                          @johnpoz So the pi is getting a static ip from the OPT dhcp server. I am not sure how to set a gateway in the DHCP server

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

                                            @bgksdfol so you setup a reservation there.

                                            so for example here is reservation for my pi

                                            gateway.jpg

                                            The gateway should be left black, so it defaults to telling the client to use the pfsense IP on that network as its gateway. Did you put something in there? like 40.0 ?

                                            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.7.2, 24.11

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