• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Apr 29, 2010, 6:42 AM

    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 Apr 29, 2010, 6:57 AM

      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 Apr 29, 2010, 7:49 AM

        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 Apr 29, 2010, 8:36 AM Apr 29, 2010, 8:34 AM

          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 Apr 29, 2010, 8:35 AM

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

            1 Reply Last reply Reply Quote 0
            • D
              dvserg
              last edited by Apr 29, 2010, 8:48 AM Apr 29, 2010, 8:39 AM

              @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 Apr 29, 2010, 8:51 AM

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

                1 Reply Last reply Reply Quote 0
                • D
                  dvserg
                  last edited by Apr 29, 2010, 9:03 AM

                  @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
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by Apr 29, 2010, 12:50 PM

                    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 May 1, 2010, 10:51 AM

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

                      1 Reply Last reply Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate
                        last edited by May 1, 2010, 1:35 PM

                        @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
                        1 out of 11
                        • First post
                          1/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received