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

    pfSense sends packet as 0.0.0.0

    Scheduled Pinned Locked Moved General pfSense Questions
    25 Posts 6 Posters 3.0k Views 6 Watching
    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.
    • T Offline
      Topogigio @NogBadTheBad
      last edited by

      @NogBadTheBad no: from one window I try to ping 1.1.1.1, on a second window I capture packets with filter=host 1.1.1.1

      What I see is that pfSense is sending ICMP request with 0.0.0.0 as source IP.

      It seems that NAT is not working.
      As workaround I tried to apply a manual NAT mapping rule "from source=any -> NAT with WAN address" and this fix the problem. If the same rule has "this firewall (itself)" as source filter instead of any, it does not work.
      My outgoing NAT mode is Hybrid and automatic rule with "127.0.0.0/8" as source is present.

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN Offline
        NogBadTheBad
        last edited by

        Does the ping work from pfSense if you say the WAN interface is the source ?

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Topogigio @NogBadTheBad
          last edited by

          @NogBadTheBad yes, with this selection works

          1 Reply Last reply Reply Quote 0
          • NogBadTheBadN Offline
            NogBadTheBad
            last edited by

            Should just work out the box with automatic rules.

            You should have your LAN subnets in the automatic rules as well.

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              Topogigio @NogBadTheBad
              last edited by

              @NogBadTheBad yes, all seems right. But still it does not work.

              1 Reply Last reply Reply Quote 0
              • NogBadTheBadN Offline
                NogBadTheBad
                last edited by NogBadTheBad

                Post a screen shot of your NAT rules and your LAN rules.

                You can just drag and drop them into the chat window.

                Andy

                1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                T 2 Replies Last reply Reply Quote 0
                • T Offline
                  Topogigio @NogBadTheBad
                  last edited by

                  @NogBadTheBad NAT outgoing:

                  nat.jpg

                  The last mapping is what I added as workaround.
                  Previous two are specific rules (working well) for two specific hosts in the LAN that need specific outgoing IP address.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    Topogigio @NogBadTheBad
                    last edited by

                    @NogBadTheBad rules LAN

                    rules.jpg

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

                      Curious why do you have 2 specific IPs in your auto outbound nats? 10.77.36.1 and .5

                      What specific IP of client where you pinging from to 1.1.1.1 when you saw the outbound from 0.0.0.0?

                      And your hybrid, so you have specific vips on your wan?

                      Trying to figure out how your auto rules match up to your networks.. From your rules I see only 2 interfaces. So that would be 2 networks in auto. If it was showing your 2 ipsec, why do you only have 3 there should be 4?? And if the singles are your ipsec? Where is the 3rd range coming from..

                      So yeah a bit confusing...

                      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

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        Topogigio @johnpoz
                        last edited by

                        @johnpoz I was pinging from pfSense itself, not from a client. From clients works.

                        Yes I have some additional VIPs

                        Yes I have two LANs + two IPSECs. LANs are 10.77.32.0/26 and 10.77.32.64/26. 10.77.36.1 and .5 are IPs on the point-to-point IPSEC tunnels. 172.30.98.0/24 is a subnet on the remote side of IPSEC (this is strange, yes).

                        However as I said the problem is not from the connected networks. The problem is only from pfSense itself.

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

                          Can we see an example in a pcap?

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

                            @Topogigio said in pfSense sends packet as 0.0.0.0:

                            but is seems having trouble connecting to Internet.

                            In what manner? Are you saying it can not check for updates? Unbound is not working... What is not working.. Other than when you do a manual ping, you say you see source of all zeros? When you don't pick an interface?

                            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

                            T 1 Reply Last reply Reply Quote 0
                            • T Offline
                              Topogigio @johnpoz
                              last edited by

                              @johnpoz I noticed the problem because it was unable to populate the available package list..
                              So I noticed that it was unable to resolve DNS, then that was unable to ping, and so on.
                              After the outpoing NAT rule I added as workaround all started to work.

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

                                so when you remove that rule, it doesn't work anymore? Or maybe unbound just had an issue? If you can not resolve.. Did you see dns traffic going out with all zeros as source?

                                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

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

                                  1. You should never have an outbound NAT rule with a source of any -- fix that before anything else. You are in hybrid mode so it's unnecessary anyhow.
                                  2. Let's see the pcap, or a screenshot of it loaded in wireshark
                                  3. What shows up in Diagnostics > States for the traffic that is sourced as 0.0.0.0?

                                  The last time this happened there was something unusual on the user's setup, though I can't remember what it was. I want to say maybe it was an IPv6-only IPsec VTI instance but I'm probably misremembering.

                                  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!

                                  T 1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    Topogigio @johnpoz
                                    last edited by

                                    @johnpoz If I remove that rule, it does not work anymore. If I remove that rule I see traffic (ICMP request for example) from pfSense with 0.0.0.0 as source. Only traffic from pfSense itself, not traffic from other hosts routed through it.

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      Topogigio @jimp
                                      last edited by

                                      @jimp

                                      • I know it. I added it as workaround, without that pfSense is unable to contact the world to resolve DNS or download updates.
                                      • sorry, a pcap from where? I have access to pfSense and nothing else on the external side.

                                      From the pfSense:

                                      PING 8.8.8.8 (8.8.8.8): 56 data bytes

                                      --- 8.8.8.8 ping statistics ---
                                      3 packets transmitted, 0 packets received, 100.0% packet loss


                                      15:37:32.819751 IP 0.0.0.0 > 8.8.8.8: ICMP echo request, id 32851, seq 0, length 64
                                      15:37:33.830224 IP 0.0.0.0 > 8.8.8.8: ICMP echo request, id 32851, seq 1, length 64
                                      15:37:34.840837 IP 0.0.0.0 > 8.8.8.8: ICMP echo request, id 32851, seq 2, length 64

                                      states: I cannot find anything related to 8.8.8.8


                                      I have IPSEC VTI interfaces, but I'm sure that the problem has started AFTER I configured them (because I required OSPF so I installed the package after the VPNs were connected. However can be something there, I agree. But I cannot understand why and what..

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

                                        No states shown for 0.0.0.0 either?

                                        T 1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          Topogigio @stephenw10
                                          last edited by

                                          @stephenw10 sorry, found:

                                          WAN icmp 0.0.0.0:25462 -> 8.8.8.8:25462 0:0 3 / 0 252 B / 0 B

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

                                            Show the entire output of ifconfig -a and netstat -rn.

                                            Something is broken in your setup and it's not NAT. The NAT is hiding the real issue.

                                            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!

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