Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory: track new Snort, WireGuard and MAC binding features #987

Open
gsanchietti opened this issue Dec 19, 2024 · 2 comments
Open

Inventory: track new Snort, WireGuard and MAC binding features #987

gsanchietti opened this issue Dec 19, 2024 · 2 comments
Assignees

Comments

@gsanchietti
Copy link
Member

Improve currently collected information inside the inventory.

IPS

  • status
  • rule policy
  • oinkcode enabled or not
  • number of bypass
  • number of suppression

WireGuard

  • number of server instances
  • number of peers for each instance
  • instance connected to system user database or not

MAC/IP binding

  • status: off, soft, hard
  • number of interfaces where enabled
@gsanchietti
Copy link
Member Author

Testing image.

@stephdl
Copy link
Contributor

stephdl commented Jan 15, 2025

QA

case wireguard

  • follow the documentation
  • create two instances with user_db set to "" or ldap database
  • set some peers
  • think to apply the configuration
    uci commit network
  • trigger the /usr/sbin/inventory and verify the stats
    this an example of the output
    "wiregard": {
      "instances": 2,
      "statistics": [
        {
          "server": "wg1",
          "peers": 2,
          "ns_user_db": "main"
        },
        {
          "server": "wg2",
          "peers": 0,
          "ns_user_db": "ldap"
        }
      ]
    },

case 2 snort

this is the json example

    "snort": {
      "enabled": true,
      "policy": "security",
      "oink_enabled": false,
      "disabled_rules": 2,
      "suppressed_rules": 0,
      "bypass_src_ipv4": 2,
      "bypass_src_ipv6": 0,
      "bypass_dst_ipv4": 0,
      "bypass_dst_ipv6": 0
    },

case MAC/IP binding

  • enable a dhcp server
  • enable the ip mac binding
  • you can change the parameter (0.1.2)

this is the example of json object

    "mac_ip_binding": {
      "disabled": 1,
      "soft-binding": 0,
      "hard-binding": 1
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress 🛠
Development

No branches or pull requests

2 participants