class OpnSense < Oxidized::Model # minimum required permissions: "System: Shell account access" # must enable SSH and password-based SSH access cmd :all do |cfg| cfg.each_line.to_a[1..-1].join end cmd 'cat /conf/config.xml' do |cfg| cfg.gsub! /\s\s*