Docs update

This commit is contained in:
vdutta 2022-04-14 12:21:51 +05:30
parent 4aeb252016
commit fd029c1b12
2 changed files with 16 additions and 1 deletions

View file

@ -55,6 +55,11 @@ Note: Applications that use libbbf_ubus to expose datamodel, not required to use
- `dm...(.c and .h)` files which contains the `bbfdm` engine (operate, diagnostics) functions
More details available in below documents:
- [activate_firmware.md](./docs/activate_firmware.md)
- [firewall.md](./docs/firewall.md)
- [json_plugin_v1.md](./docs/json_plugin_v1.md)
## How to add support for a new Object/Parameter
As mentioned above, all Data Models are stored in the **'dmtree'** folder. In order to implement a new object/parameter, you need to expand its get/set/add/delete functions and then save them in the rigth folder.

View file

@ -1,3 +1,13 @@
# Firewall
To configure firewall rules for all interfaces, add Device.Firewall.Chain.{i}.Rule.{i}. objects to the existing Device.Firewall.Chain.{i}. in the order in which they should be applied.
# Limitations
- Multiple Device.Firewall.Level.{i}. objects are not supported
- Multiple Device.Firewall.Chain.{i}. objects are not supported
- Device.Firewall.Chain.{i}.Rule.{i}.TargetChain not supported
- Device.Firewall.Chain.{i}.Rule.{i}.Order not supported, firewall rule applied in the order in which they are created, lower index rule has higher priority.
- Device.Firewall.Config only supports 'Advanced' mode
# How Device.Firewall.Chain.{i}.Rule.{i}. Object handles the Protocol parameter:
For Firewall rule sections, if the protocol(proto option) is not defined or if there are multiple protocols defined in the rule like proto='tcp udp' then in those cases the 'Device.Firewall.Chain.{i}.Rule.{i}.Protocol' parameter will have as value '255' which is reserved in the protocol specification.
For Firewall rule sections, if the protocol(proto option) is not defined or if there are multiple protocols defined in the rule like proto='tcp udp' then in those cases the 'Device.Firewall.Chain.{i}.Rule.{i}.Protocol' parameter will have as value '255' which is reserved in the protocol specification.