pfSense Shell - editing a config file and apply
-
Hi,
my generic question is: How can I edit a config file in pfsense via pfSshell?
I want to change / add / edit my zabbix config for example.
The zabbix agent is installed via pkg manager or pfsshell also.
Is there a way to manipulate the config?I tried to find more information about pfsshell.
I tried to change the file on filesystem and then a write_config() and execute in pfsshell.Does someone has an idea to put me on track?
kind regards,
CAT
-
Does someone understand my intention?
-
Packages on pfSense generally offer a GUI component for managing their configuration. Usually the GUI configuration piece is accessed via a menu entry under SERVICES put there by the package when it is installed from the pfSense packages repo (available under SYSTEM > PACKAGE MANGER.
If you mean you installed a package directly from the CLI from a package repo that is not part of the official pfSense distro, then you can be on your own. In that case, the package is unlikely to be manageable from pfSense itself. You would need to resort to manually editing any config files the package might have installed in
/usr/local/etc
(or more rarely, in/etc
).