docs - adding file based lists for json https://github.com/Ylianst/MeshCentral/issues/3401

silversword411 committed Aug 24, 2022 at 06:58 UTC dc9404395486d0858f1985b02fb78c5a550506b2
1 file changed +36
docs/docs/meshcentral/index.md
+36
@@ -577,6 +577,42 @@ IP addresses are separated by a comma. As a result, only users coming these IP a
577
578 **Note**: When IP address whitelist is effective, Mesh Agent connection from any IP address will be not affected.
579
580 +You can also use files for IP lists
581 +
582 +```json
583 +"userAllowedIp": "file:userallowedips.txt",
584 +"userBlockedIp": "file:userblockedips.txt",
585 +"agentAllowedIp": "file:agentallowedips.txt"
586 +```
587 +
588 +Place the file in the `meshcentral-data` folder.
589 +
590 +All the lines that start with a number or `:` will be used, everything else is ignored. So, you can put comments anyway you like, but probably best to start then with a `#` or something to make it clear.
591 +
592 +```txt
593 +# My list of blocked IP's
594 +185.101.70.0/24
595 +185.46.85.0/24
596 +37.9.44.0/24
597 +37.9.45.0/24
598 +5.189.205.0/24
599 +5.189.206.0/24
600 +5.189.207.0/24
601 +5.62.153.0/24
602 +5.62.156.0/24
603 +5.62.158.0/24
604 +
605 +# One more list
606 +5.8.44.0/24
607 +5.8.45.0/24
608 +5.8.46.0/24
609 +79.110.28.0/24
610 +79.110.31.0/24
611 +91.204.14.0/24
612 +95.181.218.0/24
613 +95.85.81.0/24
614 +```
615 +
616 ## Email Setup
617
618 We highly recommend the use of an email server (SMTP) because we could allow MeshCentral to verify user account’s email address by sending a confirmation request to the user to complete the account registration and for password recovery, should a user forget account password as illustrated below