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

    Unable to open /cf/conf/config.xml for writing in write_config() when set easyrule from ssh

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 351 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
      codauit
      last edited by

      I am using user "ssh" and assinged admins group to ssh pfsense from another server.
      When i set easyrule such as "easyrule block wan 192.168.2.3", i met a bug from webGUI: "Unable to open /cf/conf/config.xml for writing in write_config()" and rule not was added on firewall rule.
      Please let me know if you find out solution
      Thank you

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        You have to use the root/admin user to do that, or install the sudo package and run the command using sudo to allow your low-privilege account to take an action like that.

        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
        • C
          codauit
          last edited by

          Thank you, i found another way to set easyrule.

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