1
0
Fork
You've already forked entitydb
0
forked from CRXN/entitydb
Personal fork of CRXN's EntityDB.
  • Shell 100%
Find a file
2023年01月31日 08:07:59 +01:00
bandura.json sort my entries 2023年01月24日 10:25:32 +01:00
build_maxlen_filter.sh add more utility to script 2023年01月31日 08:07:59 +01:00
deavmi.json fix deavmi 2022年12月29日 18:23:24 +01:00
LICENSE.md Add autistic gay penis licsense version three 2021年11月07日 18:56:27 +02:00
README.md Fix invalid JSON in README.md 2021年10月31日 13:27:21 +02:00
reddawn.json fix && format 2022年12月29日 18:14:29 +01:00
schema.json add option to add more than one dns server 2022年12月31日 14:38:15 +01:00
skiqqy.json fix && format 2022年12月29日 18:14:29 +01:00
test.sh add script to build max-len rules 2022年12月27日 22:55:43 +01:00
ty3r0x.json fix && format 2022年12月29日 18:14:29 +01:00

entitydb

EntityDB holds all network allocations and associated information.

Format

Every 'entity' has its data stored in a JSON file named as 'UNIQUE.json' where UNIQUE is any unique identifier (UUID/hash/name etc.).

Content of entity (data)

The data should be a JSON object with a anonymous top-level object and "route" as only object. "route" should be a list of all routes provided by the entity with a required list of devices named "device".

"device" must contain at least one device that is reachable. A router is commonly used as the only object for the network as it is necessary in most setups.

Every device can contain the type of the device (router, generic, server), along with the list of services as "service". When no type is defined, generic is assumed.

Services must have a type (eg. tcp, udp, http, rsync, git) and at least one endpoint in the endpoints list.

Every object may contain a optional description, except lists.

Descriptions should not be used other than for describing things in a human-readable form.

Example

Here's a example that you may modify to your needs.

{
 "route": {
 "fdaa:bbcc:ddee::/48": {
 "description": "My home network",
 "device": {
 "fdaa:bbcc:ddee::1": {
 "type": "router",
 "description": "My custom router running BIRD"
 },
 "fdaa:bbcc:ddee::5": {
 "description": "Electronic mail endpoint",
 "service": [
 {
 "type": "smtp",
 "endpoint": [
 { "port": 25 }
 ]
 },
 {
 "description": "Super-secret authentication gateway",
 "type": "kerberos",
 "endpoint": [
 { "port": 89 }
 ]
 },
 {
 "type": "imap",
 "endpoint": [
 { "port": 143 }
 ]
 }
 ]
 }
 }
 },
 "fdcc:ba11:b00b::/48": {
 "device": {
 "fdcc:ba11:b00b::1": {
 "type": "router"
 }
 }
 }
 }
}