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

    Syslog remote logging problem after reboot

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    25 Posts 7 Posters 8.3k 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.
    • A
      athurdent
      last edited by

      Hmm, then you might be facing a different problem or my first entry is unrelated to remote syslogging. I always get:

      syslogd: sendto: Network is unreachable
      
      1 Reply Last reply Reply Quote 0
      • O
        Ocid
        last edited by

        Yes, it's something diffrent, because now my test server is sending events to remote syslog.

        Last events from this server before today were at 2013-01-25 10:55:43, so after that time I might have abused my test server too much…

        1 Reply Last reply Reply Quote 0
        • E
          elgo
          last edited by

          Hi,

          I have the same problem with 2.1 (02 feb build).
          My syslog server is directly attached to a static NIC of the pfsense box, not using IPv6 but it's not globally disabled. WAN link is pppoe though, if that matter.

          After a fresh reboot of the pfsense box:

          • nothing on syslog server.

          • if I do some modification on the pfsense syslog parameters page and click on save, I get in remote syslog:

          Feb  8 17:04:02 192.168.10.254 syslogd: restart
          Feb  8 17:04:02 192.168.10.254 syslogd: kernel boot file is /boot/kernel/kernel
          Feb  8 17:04:02 192.168.10.254 kernel: pflog0: promiscuous mode disabled
          Feb  8 17:04:02 192.168.10.254 pf:
          
          • if I go into a shell on pfsense box, stop syslogd process and restart it, issue is fixed.

          Additionnal data:

          • Seeing the "syslogd: sendto: Network is unreachable" message in pfsense logs.

          • no package installed

          • Config:

                  <syslog><nentries>50</nentries>
                          <logall><remoteserver>192.168.10.1</remoteserver>
                          <remoteserver2><remoteserver3><enable><reverse><nologdefaultblock></nologdefaultblock></reverse></enable></remoteserver3></remoteserver2></logall></syslog> 
          
          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Try editing this file on your firewall and remove the if statement and closing bracket, so it just runs system_syslogd_start(); no matter what.
            See if that helps.

            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!

            1 Reply Last reply Reply Quote 0
            • A
              athurdent
              last edited by

              Hi jimp,
              which file should we edit?

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

                Whoops there should have been a link in there.

                http://redmine.pfsense.org/projects/pfsense/repository/revisions/25ed9cf8a4c1bd4155ee4e1881821b9e10501916/diff/etc/rc.bootup

                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!

                1 Reply Last reply Reply Quote 0
                • A
                  athurdent
                  last edited by

                  Fine, that works for me.

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

                    So that change fixes the problem?

                    Or you're OK with testing the change?

                    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!

                    1 Reply Last reply Reply Quote 0
                    • A
                      athurdent
                      last edited by

                      Oh, sorry! I meant to say, the change worked for my setup (ALIX Board), it fixes the problem. And thanks for looking into this!

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

                        OK, I took the if statement out and updated the comment. Should be in later snapshots.

                        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!

                        1 Reply Last reply Reply Quote 0
                        • A
                          abrooks
                          last edited by

                          I've got the same problem with 2.0.3, presumably I could try the same fix?  Thanks, Adrian

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

                            @abrooks:

                            I've got the same problem with 2.0.3, presumably I could try the same fix?  Thanks, Adrian

                            Yes if the same test/code is there on 2.0.x then the same fix should work.

                            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!

                            1 Reply Last reply Reply Quote 0
                            • A
                              abrooks
                              last edited by

                              Thanks - I'll give it a try in a couple of days and let you know.  Adrian.

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