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

    Able to ping, nslookup and curl in pfSense box but curl failed in clients

    Scheduled Pinned Locked Moved General pfSense Questions
    31 Posts 4 Posters 2.8k 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.
    • R
      rcoleman-netgate Netgate @mltobing
      last edited by

      @mltobing What do the firewall logs say, then? All blocked traffic is logged by default unless you explicitly make a rule to deny that (which you haven't done).

      Status->System Logs .... Firewall tab. Look for, or filter by, your system's IP.

      Ryan
      Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
      Requesting firmware for your Netgate device? https://go.netgate.com
      Switching: Mikrotik, Netgear, Extreme
      Wireless: Aruba, Ubiquiti

      1 Reply Last reply Reply Quote 0
      • R
        rcoleman-netgate Netgate @mltobing
        last edited by

        @mltobing said in Able to ping, nslookup and curl in pfSense box but curl failed in clients:

        I also think need to add rule(s) to allow the traffic but I don't know which rule and what kind of NAT configuration I need for this. Any idea what rules and NAT configuration I need for this ?

        On the LAN interface all traffic is passed by default unless you remove that rule or block the traffic.

        b9fafa39-9500-4ece-a83f-a2dd2b281366-image.png
        AHA!

        The default rule says LAN NET for the source... I suspect 31.0/24 is being blocked because it is not 1.0/24

        change that to Any source (did you change this?) and it should be good to go.

        Ryan
        Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
        Requesting firmware for your Netgate device? https://go.netgate.com
        Switching: Mikrotik, Netgear, Extreme
        Wireless: Aruba, Ubiquiti

        1 Reply Last reply Reply Quote 1
        • M
          mltobing
          last edited by

          @rcoleman-netgate When you mentioned something wrong with OpenWRT, I removed OpenWRT and my laptop connected directly to pfSense LAN NIC so my laptop using 192.168.1.x.

          I followed your instruction to update LAN Net to any. But still same.

          From Firewall logs I found only ICMPv6 blocked (because I just disabled IPv6) and then the first record because I tracerouted from WAN to LAN IP Address. There is no other traffic blocked. Please check this picture.

          c6d53632-6d4b-4517-881a-e24deab99810-image.png

          R 1 Reply Last reply Reply Quote 0
          • R
            rcoleman-netgate Netgate @mltobing
            last edited by

            @mltobing Telnet over 443? Hmm.

            Run a packet capture on the WAN interface with 443 as the port and the IP address you are checking as the host.

            Does it see the traffic?

            Ryan
            Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
            Requesting firmware for your Netgate device? https://go.netgate.com
            Switching: Mikrotik, Netgear, Extreme
            Wireless: Aruba, Ubiquiti

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

              @rcoleman-netgate This is the result of packet capture (time in pfsense box slightly different with my laptop)

              1e283deb-5549-43af-b017-2ee4a25bf814-image.png

              R 1 Reply Last reply Reply Quote 0
              • R
                rcoleman-netgate Netgate @mltobing
                last edited by

                @mltobing What's between your pfSense and the world?
                This suggests the issue does not lie in your pfSense but on the next step out - it goes in the pfSense and out the WAN port but nothing is coming back.

                Ryan
                Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                Requesting firmware for your Netgate device? https://go.netgate.com
                Switching: Mikrotik, Netgear, Extreme
                Wireless: Aruba, Ubiquiti

                1 Reply Last reply Reply Quote 1
                • M
                  mltobing
                  last edited by mltobing

                  @rcoleman-netgate That really strange. There is ISP modem after pfSense box. I removed pfSense box and change it with OpenWRT AP all working fine.

                  If you think like that, now I am not sure if this issue related to Intel Atom box or the NICs

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    rcoleman-netgate Netgate @mltobing
                    last edited by

                    @mltobing Are you running any type of VPN?

                    Ryan
                    Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                    Requesting firmware for your Netgate device? https://go.netgate.com
                    Switching: Mikrotik, Netgear, Extreme
                    Wireless: Aruba, Ubiquiti

                    1 Reply Last reply Reply Quote 1
                    • M
                      mltobing
                      last edited by mltobing

                      @rcoleman-netgate I am not running any type of VPN

                      I forgot if we cannot curl, because of that we didn't get any reply. But we have no issue with ping, so I tried to capture and we got reply.

                      Strange. Why pfSense box allowed ICMP and nslookup but blocked other traffic. On my laptop I checked the network status "internet access" but I cannot browsing the internet.

                      Thanks for your fast response. I will go out and reply you later

                      d5a23b7d-24f5-43af-9b3f-3520501eb7b3-image.png

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

                        @rcoleman-netgate I tried this scenario to get packets from OpenWRT. I ran curl on my laptop first then pfsense box

                        pfSense WAN captured packets from both of them but didn't forward requests from my laptop to OpenWRT. We can see OpenWRT captured packets after 20:55:48 only. Do you know why pfSense WAN didn't forward packets from my laptop?

                        5a1ec76e-70dd-470b-a863-bf3b00472339-image.png

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

                          It's not that pfSense is not forwarding the responses it's that it never gets any responses to forward. For some reason.

                          There must be some difference between the packets from the client and those from pfSense. The TTL would be different for example.

                          The pcap on openwrt doesn't show any of the traffic from the laptop behind pfSense. Was is started after that had failed?

                          Steve

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

                            My number one suspect here would be the USB NIC you're using except you have that as LAN and it appears to be passing inbound there.
                            What is the WAN NIC in that device? What hardware off-loading do you have enabled?

                            Steve

                            1 Reply Last reply Reply Quote 1
                            • M
                              mltobing
                              last edited by mltobing

                              @stephenw10 The NIC assignment were correct. If I set them wrong, WAN interface didn't get any IP Address.
                              Because this is initial setup I didn't change any hardware offloading setting.

                              I tested again and this time I captured OpenWRT LAN interface. pfSense WAN directly connected to OpenWRT LAN.
                              Traffics forwarded from my laptop don't have TS val, but from pfSense have.

                              7166526b-cc8b-4a85-9df0-4eabf82c73c9-image.png

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

                                Ok so pfSense is sending that traffic as expected and OpenWRT sees it on the LAN but no replies.
                                Are there any replies on the OpenWRT WAN?

                                You're probably going to need to open that in Wireshark and look at it more closely.

                                You might also connect the laptop to OpenWRT directly and pcap the same traffic there when it succeeds.

                                https://en.wikipedia.org/wiki/Transmission_Control_Protocol#TCP_timestamps

                                TCP timestamps are enabled by default In Linux kernel.,[27] and disabled by default in Windows Server 2008, 2012 and 2016.[28]

                                Steve

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

                                  @stephenw10 I am not familiar with packet inspection. Is there something I need to check ?

                                  This is the packets capture result on OpenWRT LAN interface

                                  Top = my laptop => pfSense => OpenWRT (unable to connect to internet, no reply from OpenWRT WAN)
                                  Bottom = my laptop => OpenWRT (able to connect to internet)

                                  370c29be-8274-41ec-b191-7f50559d965c-image.png

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

                                    OK, it looks like you may have some asymmetric routing somewhere.

                                    In the working pcap you can see there is traffic in that TCP session that did not pass the interface.

                                    By far the most likely is that the laptop you're testing from has some other connection. Like maybe it has wifi directly to the ISP "modem".

                                    pfSense will block out of state TCP traffic like that. Lesser firewalls may not. 😉

                                    Do you see any blocked TCP traffic in the pfSense firewall log?

                                    It's still hard to see how that could happen though because each device is source NATing on the way out...

                                    But that fact the ping works also points to that.

                                    Steve

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

                                      @stephenw10 I did so many tests but traffics filtered by destination only these

                                      84d600e1-2cf3-4753-b79c-84cb15aaa8cd-image.png

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

                                        Hmm 192.168.1.101 should not be blocked inbound on LAN like that. Assuming that's still the LAN subnet?

                                        But if it was that traffic would not appear on the pfSense WAN

                                        Are you able to upload those pcaps so I can review them?
                                        https://nc.netgate.com/nextcloud/s/9jFb69WaCHzfSRB

                                        Steve

                                        R 1 Reply Last reply Reply Quote 0
                                        • R
                                          rcoleman-netgate Netgate @stephenw10
                                          last edited by

                                          @stephenw10 That is a SYN packet - it could be because of a closed state or a bad state reference (like you commented about asymmetry).

                                          Ryan
                                          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                          Requesting firmware for your Netgate device? https://go.netgate.com
                                          Switching: Mikrotik, Netgear, Extreme
                                          Wireless: Aruba, Ubiquiti

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

                                            SYN should be passed. Any other flag combo might be dropped. Hard to see where another route might exist though since the laptop is already connected via wifi.

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