mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-08 03:01:29 -07:00
Compare commits
11 Commits
2baeef9179
...
fb35548d99
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb35548d99 | ||
|
|
e575312013 | ||
|
|
a246dc271f | ||
|
|
b10977b3c9 | ||
|
|
be2c3733ca | ||
|
|
01186a76f6 | ||
|
|
277e441dc4 | ||
|
|
7b4c280d6d | ||
|
|
c63f476370 | ||
|
|
93f4932854 | ||
|
|
1b116ebced |
0
front/php/templates/language/ca_ca.json
Executable file → Normal file
0
front/php/templates/language/ca_ca.json
Executable file → Normal file
2
front/php/templates/language/de_de.json
Executable file → Normal file
2
front/php/templates/language/de_de.json
Executable file → Normal file
@@ -812,4 +812,4 @@
|
||||
"settings_update_item_warning": "",
|
||||
"test_event_icon": "",
|
||||
"test_event_tooltip": "Speichere die Änderungen, bevor Sie die Einstellungen testen."
|
||||
}
|
||||
}
|
||||
|
||||
2
front/php/templates/language/es_es.json
Executable file → Normal file
2
front/php/templates/language/es_es.json
Executable file → Normal file
@@ -810,4 +810,4 @@
|
||||
"settings_update_item_warning": "Actualice el valor a continuación. Tenga cuidado de seguir el formato anterior. <b>O la validación no se realiza.</b>",
|
||||
"test_event_icon": "fa-vial-circle-check",
|
||||
"test_event_tooltip": "Guarda tus cambios antes de probar nuevos ajustes."
|
||||
}
|
||||
}
|
||||
|
||||
2
front/php/templates/language/fr_fr.json
Executable file → Normal file
2
front/php/templates/language/fr_fr.json
Executable file → Normal file
@@ -731,4 +731,4 @@
|
||||
"settings_update_item_warning": "Mettre à jour la valeur ci-dessous. Veillez à bien suivre le même format qu'auparavant. <b>Il n'y a pas de pas de contrôle.</b>",
|
||||
"test_event_icon": "fa-vial-circle-check",
|
||||
"test_event_tooltip": "Enregistrer d'abord vos modifications avant de tester vôtre paramétrage."
|
||||
}
|
||||
}
|
||||
|
||||
2
front/php/templates/language/it_it.json
Executable file → Normal file
2
front/php/templates/language/it_it.json
Executable file → Normal file
@@ -731,4 +731,4 @@
|
||||
"settings_update_item_warning": "Aggiorna il valore qui sotto. Fai attenzione a seguire il formato precedente. <b>La convalida non viene eseguita.</b>",
|
||||
"test_event_icon": "fa-vial-circle-check",
|
||||
"test_event_tooltip": "Salva le modifiche prima di provare le nuove impostazioni."
|
||||
}
|
||||
}
|
||||
|
||||
2
front/php/templates/language/nb_no.json
Executable file → Normal file
2
front/php/templates/language/nb_no.json
Executable file → Normal file
@@ -731,4 +731,4 @@
|
||||
"settings_update_item_warning": "Oppdater verdien nedenfor. Pass på å følge forrige format. <b>Validering etterpå utføres ikke.</b>",
|
||||
"test_event_icon": "fa-vial-circle-check",
|
||||
"test_event_tooltip": "Lagre endringene først, før du tester innstillingene dine."
|
||||
}
|
||||
}
|
||||
|
||||
2
front/php/templates/language/pl_pl.json
Executable file → Normal file
2
front/php/templates/language/pl_pl.json
Executable file → Normal file
@@ -731,4 +731,4 @@
|
||||
"settings_update_item_warning": "Zaktualizuj poniższą wartość. Zachowaj ostrożność i postępuj zgodnie z poprzednim formatem. <b>Walidacja nie jest wykonywana.</b>",
|
||||
"test_event_icon": "fa-vial-circle-check",
|
||||
"test_event_tooltip": "Zapisz zmiany zanim będziesz testować swoje ustawienia."
|
||||
}
|
||||
}
|
||||
|
||||
2
front/php/templates/language/pt_br.json
Executable file → Normal file
2
front/php/templates/language/pt_br.json
Executable file → Normal file
@@ -731,4 +731,4 @@
|
||||
"settings_update_item_warning": "",
|
||||
"test_event_icon": "",
|
||||
"test_event_tooltip": ""
|
||||
}
|
||||
}
|
||||
|
||||
0
front/php/templates/language/ru_ru.json
Executable file → Normal file
0
front/php/templates/language/ru_ru.json
Executable file → Normal file
2
front/php/templates/language/zh_cn.json
Executable file → Normal file
2
front/php/templates/language/zh_cn.json
Executable file → Normal file
@@ -731,4 +731,4 @@
|
||||
"settings_update_item_warning": "更新下面的值。请注意遵循先前的格式。<b>未执行验证。</b>",
|
||||
"test_event_icon": "",
|
||||
"test_event_tooltip": "在测试设置之前,请先保存更改。"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,15 @@ To set up the plugin correctly, make sure to add in the plugin settings the name
|
||||
|
||||
### Usage
|
||||
|
||||
- Head to **Settings** > **IP Neigh** to add the interfaces you want to scan to the `IPNEIGH_interfaces` option
|
||||
- The interface list must be formatted without whitespaces and comma separated e.g. `eth0,wl1,tap0`
|
||||
- Head to **Settings** > **IP Neigh** to adjust teh settings
|
||||
- Interfaces are extracted from the `SCAN_SUBNETS` setting (make sure you add interfaces in the prescribed format, e.g. `192.168.1.0/24 --interface=eth1`)
|
||||
|
||||
### Notes
|
||||
|
||||
- `ARPSCAN` does a better job at discovering IPv4 devices because it explicitly sends arp requests
|
||||
- IPv6 devices will often have multiple addresses, but the ping answer will contain only one. This means that in general this plugin will not discover every address but only those who answer
|
||||
- IPv6 devices will often have multiple addresses, but the ping answer will contain only one. This means that in general this plugin will not discover every address but only those who answer
|
||||
|
||||
### Other info
|
||||
|
||||
- Author : [KayJay7](https://github.com/KayJay7)
|
||||
- Date : 31-Nov-2024 - version 1.0
|
||||
|
||||
@@ -113,38 +113,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"function": "interfaces",
|
||||
"type": {
|
||||
"dataType": "string",
|
||||
"elements": [
|
||||
{
|
||||
"elementType": "input",
|
||||
"elementOptions": [],
|
||||
"transformers": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"maxLength": 150,
|
||||
"default_value": "eth0",
|
||||
"options": [],
|
||||
"localized": [
|
||||
"name",
|
||||
"description"
|
||||
],
|
||||
"name": [
|
||||
{
|
||||
"language_code": "en_us",
|
||||
"string": "Interfaces to scan"
|
||||
}
|
||||
],
|
||||
"description": [
|
||||
{
|
||||
"language_code": "en_us",
|
||||
"string": "The plugin will scan these comma separated interfaces"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"function": "CMD",
|
||||
"type": {
|
||||
@@ -161,7 +129,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"default_value": "python3 /app/front/plugins/ipneigh/ipneigh.py ipneigh_interfaces={IPNEIGH_interfaces}",
|
||||
"default_value": "python3 /app/front/plugins/ipneigh/ipneigh.py",
|
||||
"options": [],
|
||||
"localized": [
|
||||
"name",
|
||||
|
||||
@@ -39,9 +39,16 @@ def main():
|
||||
mylog('verbose', [f'[{pluginName}] In script'])
|
||||
|
||||
# Retrieve configuration settings
|
||||
interfaces = get_setting_value('IPNEIGH_interfaces')
|
||||
SCAN_SUBNETS = get_setting_value('SCAN_SUBNETS')
|
||||
|
||||
mylog('verbose', [f'[{pluginName}] Interfaces value: {interfaces}'])
|
||||
mylog('verbose', [f'[{pluginName}] SCAN_SUBNETS value: {SCAN_SUBNETS}'])
|
||||
|
||||
# Extract interfaces from SCAN_SUBNETS
|
||||
interfaces = ','.join(
|
||||
entry.split('--interface=')[-1].strip() for entry in SCAN_SUBNETS if '--interface=' in entry
|
||||
)
|
||||
|
||||
mylog('verbose', [f'[{pluginName}] Interfaces value: "{interfaces}"'])
|
||||
|
||||
# retrieve data
|
||||
raw_neighbors = get_neighbors(interfaces)
|
||||
|
||||
Reference in New Issue
Block a user