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

    Internet access fail, can't ping pfSense

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 3 Posters 7.6k 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.
    • johnpozJ Online
      johnpoz LAYER 8 Global Moderator
      last edited by

      Well you running it as VM, can you look at the console of pfsense on your VM server to see what has happened?  What does it show?

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

      1 Reply Last reply Reply Quote 0
      • Y Offline
        YossiH
        last edited by

        well, here's a screenshot of the console on the time of failure
        (attached as on failure.png)
        the message shows:
        WARNING: pseudo-random number generator used for IPsec processing

        I also attach a screenshot of the ping attempt to LAN from console - (pinging to world gave same result (ping on failure.png)
        And a ping from my workstation (192.168.0.1) to the pfSense (192.168.0.254) (on reset.png)while resetting the pfSense host.

        Hope this can this point to somewhere useful
        Thanks!

        ![ping on failure.PNG](/public/imported_attachments/1/ping on failure.PNG)
        ![ping on failure.PNG_thumb](/public/imported_attachments/1/ping on failure.PNG_thumb)
        ![on failure.PNG](/public/imported_attachments/1/on failure.PNG)
        ![on failure.PNG_thumb](/public/imported_attachments/1/on failure.PNG_thumb)
        ![on reset.PNG](/public/imported_attachments/1/on reset.PNG)
        ![on reset.PNG_thumb](/public/imported_attachments/1/on reset.PNG_thumb)

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

          from the console access the shell and look at the logs.  Are your interfaces up?  They seem to be from the status? You can view logs with clog command at the shell.

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

          1 Reply Last reply Reply Quote 0
          • W Offline
            wallabybob
            last edited by

            @YossiH:

            When I try ping (both a LAN address as well as an internet address) from the console, I get ping: sendto: operation not permitted
            Restarting the pfSense machine solves the problem, untill next time.

            I suspect you have run out of network resources, most likely mbufs. Use pfSense shell command```

            netstat -m

            1 Reply Last reply Reply Quote 0
            • Y Offline
              YossiH
              last edited by

              Hi all,
              johnpoz, excuse my ignorance.
              I'll learn how to use the clog and see what's in there - I have to look at the log portion on time of failure… if you can point me to some tutorial it will be great.

              wallabybob, I attached the first netstat -m results, after ~10 hours uptime.  
              I'll post more later. do you see anything?

              tnx, much appreciated!

              ![netstat 20121001-2250.PNG](/public/imported_attachments/1/netstat 20121001-2250.PNG)
              ![netstat 20121001-2250.PNG_thumb](/public/imported_attachments/1/netstat 20121001-2250.PNG_thumb)

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

                from shell type clog and the file you want to look at, clog /var/etc/system.log

                you could pipe with more if you want
                clog /var/etc/system.log | more

                You could look end and have it pop up new entries with -f

                clog -f /var/etc/system.log

                you could send it to file that you could copy off and look at or post
                clog /var/etc/system.log >/tmp log.txt

                etc.. etc.  look in your var/etc dir for what log files you might want to look at

                
                [2.1-BETA0][admin@pfsense.local.lan]/var/log(8): ls
                apinger.log        l2tps.log          poes.log           system.log
                dhcpd.log          lastlog            portalauth.log     userlog
                dmesg.boot         lighttpd.error.log ppp.log            vpn.log
                filter.log         lighttpd.log       pptps.log          wireless.log
                gateways.log       ntp                relayd.log
                installer.log      ntpd.log           resolver.log
                ipsec.log          openvpn.log        routing.log
                
                

                http://doc.pfsense.org/index.php/Why_can%27t_I_view_view_log_files_with_cat/grep/etc%3F_%28clog%29

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

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  YossiH
                  last edited by

                  Got it!

                  Strange thing is that log entries start only from the reboot onward, so I can't see the ones on time of failure.

                  Is this expected? Are logs in RAM only?

                  Might be because I forced the reboot from the VMware (and not from the pfSense console option)?

                  attached result of clog /var/etc/system.log | more

                  ???

                  ![Clog system log .PNG](/public/imported_attachments/1/Clog system log .PNG)
                  ![Clog system log .PNG_thumb](/public/imported_attachments/1/Clog system log .PNG_thumb)

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

                    did you disable logging to local disk?  Under system log settings?

                    "Local Logging Disable writing log files to the local disk"

                    Either way, next time it fails - access it via console on your esxi box and look at the logs.  Do they show anything?

                    I just looked at first entry in my system.log and it goes back to

                    [2.1-BETA0][admin@pfsense.local.lan]/var/log(7): clog /var/log/system.log | more
                    ing dynamic DNS entry.
                    Aug 23 21:42:04 pfsense php: : DynDns: updatedns() starting

                    That is before I did my last snap upgrade even which was like 9 days ago.  So the log entries should be there going back for a while - depending on how much is logged, etc.

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

                    1 Reply Last reply Reply Quote 0
                    • Y Offline
                      YossiH
                      last edited by

                      I didn't…

                      Sure, next time I'll look at the logs and netstat -m before rebooting.

                      If there is anything else I should be looking at on time of failure, or some other setting I should prepare myself with, pls let me know.

                      Thanks :-)

                      ![sys log settings.PNG](/public/imported_attachments/1/sys log settings.PNG)
                      ![sys log settings.PNG_thumb](/public/imported_attachments/1/sys log settings.PNG_thumb)

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

                        So I would verify if you can ping other VMs on the same vswitch - when your connections fail, can pfsense even ping the devices on the same vswitch?

                        That .7 address you were trying to ping is that on your physical network, same vswitch as pfsense, different vswitch?

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

                        1 Reply Last reply Reply Quote 0
                        • Y Offline
                          YossiH
                          last edited by

                          on failure, I could reach other machines on the same physical host.
                          .7 is the actual ESXi host where pfSense is guest

                          still, the physical host has 4 NICs
                          1 for the ESXi management, + other guests
                          2 for pfSense LAN
                          3 for pfSense WAN
                          4 for pfSense ADSL (not in use)

                          so while NIC 1 was reachable from the LAN, NIC 2, NIC3 were not reachable from LAN, WAN respectively, neither I could ping out of either from pfSense console.

                          BTW. we managed to get the log entries for time of failure from the syslog server - see attached log on faiulure.png
                          The failure occurred 22:33
                          We dont see anything related to the failure in the logs (but we see it in the RSS graphs)

                          but we see that, !!after!! failure the log entries were being sent to the syslog server on the LAN (.152), and ipSec was being established on the WAN  :o
                          I get from it that the NICs were not completely "dead"

                          In the mean time, we rolled back some changes we did before the problem started, mainly uninstalling bandwithD package.

                          ![log on failure.PNG](/public/imported_attachments/1/log on failure.PNG)
                          ![log on failure.PNG_thumb](/public/imported_attachments/1/log on failure.PNG_thumb)

                          1 Reply Last reply Reply Quote 0
                          • Y Offline
                            YossiH
                            last edited by

                            An update:
                            After everything was working fine for a few weeks after rolling back the changes,
                            we installed packages:

                            • ntop
                            • Zabbix Agent
                              in 48 hours, we had the issue occurring twice.

                            I suspect it's one of the two.
                            Uninstalled ntop
                            Waiting to see what happens

                            1 Reply Last reply Reply Quote 0
                            • Y Offline
                              YossiH
                              last edited by

                              no re occurance since uninstalling ntop
                              previous cycle solution was to uninstall bandwithd

                              so it's something to do with bandwith management packages together with our configuration.

                              hope this helps someone :-)
                              and thank you all for your assistance

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