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

pfSense Shell - editing a config file and apply

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 2.2k 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.
  • C
    cat1510
    last edited by Sep 12, 2021, 12:58 PM

    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

    1 Reply Last reply Reply Quote 0
    • C
      cat1510
      last edited by Sep 15, 2021, 10:18 AM

      Does someone understand my intention?

      1 Reply Last reply Reply Quote 0
      • B
        bmeeks
        last edited by Sep 15, 2021, 8:16 PM

        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).

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received