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

    PFsense CLI/Shell ?

    General pfSense Questions
    4
    5
    13.9k
    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
      R0thbard
      last edited by

      Correct me if I'm wrong, but pFsense does not currently have a CLI. Over the past few days at work I've gotten to mess around with our Juniper SRX cluster's CLI, and doing stuff with an HP Procurve's CLI.

      It was really quite fun. Are there any plans to implement some type of pFsense-specific shell to "wrap" around the config files?

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

        You can ssh into pfSense and use whatever shell you want like bash etc. Why restrict yourself to specific configuration commands when you can work directly with config files and common UNIX commands and utilities? You can always write scripts or aliases for common commands.

        1 Reply Last reply Reply Quote 0
        • S
          SysIT
          last edited by

          Diagnostics –> Command Prompt

          or SSH into it.

          ¸,ø¤°`°¤ø,¸© Poor Planning On Your Part Does Not Constitute An Emergency On My Part ©¸,ø¤°`°¤ø,¸
          ¸,ø¤°`°¤ø,¸© The trouble with life is there’s no background music ©¸,ø¤°`°¤ø,¸
          ¸,ø¤°`°¤ø,¸© Life isnt short, you're just dead for too long©¸,ø¤°`°¤ø,¸

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

            @daq:

            You can ssh into pfSense and use whatever shell you want like bash etc. Why restrict yourself to specific configuration commands when you can work directly with config files and common UNIX commands and utilities? You can always write scripts or aliases for common commands.

            I'm aware of that, but it's not as intuitive, organized, and centralized as other solutions. JUNOS is build on FreeBSD too, and I believe it capabilities similar to that.

            I'd like to be able to SSH/console in and type

            show security nat source summary
            

            And see results.

            show run
            

            vs

            vim /etc/pfsense/whatevertheconfigfileis.conf
            
            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              On most other devices I find myself wishing for a real shell but I know what you mean. Probably the closest thing pfSense has is the PHP shell:
              https://doc.pfsense.org/index.php/Using_the_PHP_pfSense_Shell
              Not really directly comparable though.

              Steve

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