PFsense CLI/Shell ?
-
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?
-
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.
-
Diagnostics –> Command Prompt
or SSH into it.
-
@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
-
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