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

    PFSence source code structure

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 3 Posters 3.9k 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
      rcbandit
      last edited by

      Hi,
        I'm interested how PFSence is organized. Would you tell me in details what framework do you use, what programming languages do you use and that is the core structure.

      regards

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        PFSense is a FreeBSD based system.
        WebGUI writed on PHP.

        https://rcs.pfsense.org/

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • R
          rcbandit
          last edited by

          Well, I'm confused. it's better to discuss it with you.
              I'm designing a open source management  system for network. I want to make my software like PFSence.
              The software will be like PFSence - php web GUI with optimized and customized linux distribution (Centos with minimum packages). The problem is in the software structure - I want to use the PFSence model.
              As far as I understand php sends commands to he system terminal. Would you tell more about the architecture and what php framework is used?

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by

            Scheme:

            1. Admin ==> WebGUI (php) ==> FreeBSD + applications

            Config stored in xml file:
            2) WebGUI (php) < - > config.xml

            WebGUI take config from XML and configure scripts or App config's:
            3) config.xml -> WebGUI (php) -> [shell scripts, application configs, direct call applications ( php exec function) ]

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • R
              rcbandit
              last edited by

              config.xml is used to store the configuration? Only the configuration?

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by

                @rcbandit:

                config.xml is used to store the configuration? Only the configuration?

                Hm.. config.xml, how know, only full system configuration (packages too). You can move config.xml to new pfSense and configure it as old (RTFM).

                But other XML files used also for define WebGUI Forms (as Package system)

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • R
                  rcbandit
                  last edited by

                  Ok, do you use php framework or you use plain php?

                  1 Reply Last reply Reply Quote 0
                  • D
                    dvserg
                    last edited by

                    @rcbandit:

                    Ok, do you use php framework or you use plain php?

                    This is a question to developers  ???

                    SquidGuardDoc EN  RU Tutorial
                    Localization ru_PFSense

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

                      Just plain PHP, no framework yet. That has been talked about for a far-future release (3.0 or later)

                      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
                      • R
                        rcbandit
                        last edited by

                        What framework are you planning to use?
                        Which framework do you find best for pfsence

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

                          @rcbandit:

                          What framework are you planning to use?
                          Which framework do you find best for pfsence

                          I don't think that has been decided. There has been talk of CakePHP but some people like it and others say it's too slow.

                          Given that it's so far in the future for a topic, it's far too early to say.

                          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
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.