Giter Site home page Giter Site logo

opnsense-dashboard-cli's People

Contributors

arnavion avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

opnsense-dashboard-cli's Issues

Use the HTTP API instead of ssh where possible

Sicne OPN provides an HTTP API for things, consider using it instead of ssh where possible.

Pros: HTTP requests can be made in parallel.

Cons: HTTP stack, more server CPU usage (PHP, python, shell processes).


  • batched_sysctls_{1,2}

    No equivalent API.

  • clog_filter_log

    /api/diagnostics/filter/log?limit=...&digest=...

    This also abstracts over whether clog or syslog-ng is in use, at the cost of being more expensive (PHP -> Python -> ls -> sort -> seek to end -> read backwards until digest)

  • df

    No equivalent API.

  • dpinger

    No equivalent API.

  • ifconfig

    No equivalent API.

    There's /usr/local/opnsense/scripts/interfaces/list_interfaces.php but it's not hooked up to any API.

  • netstat_bin

    /api/diagnostics/traffic/interface/ - names and bytes only.

    /api/diagnostics/interface/getInterfaceStatistics - names, bytes and addresses; but requires network.starts_with filtering as before for the bytes.

  • netstat_m

    /api/diagnostics/interface/getMemoryStatistics

  • opnconfig

    No equivalent API. Might not be necessary any more.

  • pfctl_s_info

    No equivalent API.

  • pgrep

    No equivalent API.

  • smartctl_a

    /api/smart/service/info POST { "device": "ada0", "type": "a" }

    Blocked on opnsense/plugins#2283

  • smartctl_i

    /api/smart/service/info POST { "device": "ada0", "type": "i" }

    Blocked on opnsense/plugins#2283

  • sysctl_aN

    No equivalent API.

  • sysctl_kern_disks

    /api/smart/service/list POST <empty body>

  • uname_sr

    No equivalent API.

  • version

    /api/core/firmware/status


Note: Dashboard user requires "Effective Privileges: All pages", because at least /api/diagnostics/interface/getInterfaceStatistics is not made available by any of the built-in roles.

Ref: https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Core/ACL/ACL.xml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.