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

    Format for entries in loader.conf.local

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 657 Views 2 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.
    • J Offline
      jsmiddleton4
      last edited by jsmiddleton4

      Obviously rookie question but I can't sort it.

      As I read regarding entries or examples I'm seeing two different formats regarding "" in *.conf files.

      Some have this:

      hw.igc.0.rxd=”4096”

      Some have this:

      net.inet6.icmp6.rediraccept=1

      When does loader.conf.local need the ""? When not?

      I suppose its the same ? for all of the *.conf files that can be edited as I see both in examples for other .conf files.

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

        In most cases either will work but the expected format is using speech marks:

             All settings have the following format:
        
        	   variable="value"
        

        See: https://www.freebsd.org/cgi/man.cgi?query=loader.conf

        Steve

        J 1 Reply Last reply Reply Quote 1
        • J Offline
          jsmiddleton4 @stephenw10
          last edited by

          @stephenw10
          Thanks for the link.

          So IF I was going to put this in a *.conf file it'd be:

          net.inet6.icmp6.rediraccept="1"

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

            Yes, that would work.

            A value like that only has to resolve to logic true or false so I imagine there is more flexibility in the input. I've never really dug much deeper into it but I have used variations of yes, "yes" and YES successfully for variables in the past.

            Steve

            J 1 Reply Last reply Reply Quote 1
            • J Offline
              jsmiddleton4 @stephenw10
              last edited by

              @stephenw10

              I wondered if the 1 and 0's quotes not needed because they are simply enable/disable, yes, no, etc.

              Now to look at variables.

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