Bonjour à tous,
Dans le cadre de la sécurisation de mon NAS, je souhaite restreindre l'accès de mon pare-feu aux seules plages d'adresses IP de Cloudflare.
Saisir manuellement les 15 entrées IPv4 étant fastidieux, j'ai utilisé la fonction d'import/export d'ADM Defender. J'ai d'abord exporté un fichier JSON pour en analyser la structure, puis j'ai utilisé une IA pour compléter le fichier avec les plages d'adresses officielles de Cloudflare.
Le problème est le suivant : l'importation se déroule correctement et les règles apparaissent bien dans la liste, mais elles sont totalement inactives. Je ne peux ni les cocher pour les activer, ni les éditer.
S'agit-il d'un bug connu de l'interface ou est-ce lié à une structure de fichier JSON incorrecte (champs manquants ou mal formatés) ?
Merci d'avance pour votre aide !
le contenu du fichier .json
{
"Name":"janvier2026",
"Description":"",
"Owner":1,
"Rules":[
{
"Name":"Lans",
"Enable":true,
"GlobalSection":true,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":0,
"IPType":2,
"IP":"",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":true,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":3,
"IPType":0,
"IP":"100.64.0.1-100.127.255.255",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":2,
"IPType":0,
"IP":"173.245.48.1",
"Subnet":"255.255.240.0",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":2,
"IPType":0,
"IP":"103.21.244.1",
"Subnet":"255.255.252.0",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":2,
"IPType":0,
"IP":"103.22.200.1",
"Subnet":"255.255.252.0",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":4,
"IPType":2,
"IP":"",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"Europe_France",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":1,
"AddressMode":0,
"IPType":2,
"IP":"",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
}
]
}
Dans le cadre de la sécurisation de mon NAS, je souhaite restreindre l'accès de mon pare-feu aux seules plages d'adresses IP de Cloudflare.
Saisir manuellement les 15 entrées IPv4 étant fastidieux, j'ai utilisé la fonction d'import/export d'ADM Defender. J'ai d'abord exporté un fichier JSON pour en analyser la structure, puis j'ai utilisé une IA pour compléter le fichier avec les plages d'adresses officielles de Cloudflare.
Le problème est le suivant : l'importation se déroule correctement et les règles apparaissent bien dans la liste, mais elles sont totalement inactives. Je ne peux ni les cocher pour les activer, ni les éditer.
S'agit-il d'un bug connu de l'interface ou est-ce lié à une structure de fichier JSON incorrecte (champs manquants ou mal formatés) ?
Merci d'avance pour votre aide !
le contenu du fichier .json
{
"Name":"janvier2026",
"Description":"",
"Owner":1,
"Rules":[
{
"Name":"Lans",
"Enable":true,
"GlobalSection":true,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":0,
"IPType":2,
"IP":"",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":true,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":3,
"IPType":0,
"IP":"100.64.0.1-100.127.255.255",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":2,
"IPType":0,
"IP":"173.245.48.1",
"Subnet":"255.255.240.0",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":2,
"IPType":0,
"IP":"103.21.244.1",
"Subnet":"255.255.252.0",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":2,
"IPType":0,
"IP":"103.22.200.1",
"Subnet":"255.255.252.0",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":0,
"AddressMode":4,
"IPType":2,
"IP":"",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"Europe_France",
"UUID":"",
"DockerSupport":false,
"Status":0
},
{
"Name":"",
"Enable":true,
"GlobalSection":false,
"Interface_Display_Name":"Any",
"Interface_Section_Name":"Any",
"Ifname":"Any",
"Policy":1,
"AddressMode":0,
"IPType":2,
"IP":"",
"Subnet":"",
"Prefix":0,
"PortMode":0,
"Ports":"",
"Protocol":0,
"Service":"",
"Country":"",
"UUID":"",
"DockerSupport":false,
"Status":0
}
]
}
- Appareil
- AS5402T
- Version du firmware
- 5.1.1.RC11
Dernière édition: