CSecLab / LiDiTE

The LiDiTE framework
GNU Affero General Public License v3.0
8 stars 2 forks source link

Error network after "make up" #1

Open OT-Plant opened 2 years ago

OT-Plant commented 2 years ago

After the command "make up" I received this output error: _Creating network "lidite_a25_ind_enterprise" with driver "dovesnap" ERROR: Invalid subnet "172.16.10.0/24" : invalid CIDR address: "172.16.10.0/24"_

Can you advise me for resolve the issue?

/OS: Debian 11.1

gabibbo97 commented 2 years ago

This might be due to dovesnap requiring root permissions for some tasks, can you try:

OT-Plant commented 2 years ago

Thanks. I used the root user. The output is quite similar, change only the network name:

_root@debian:/home/user/LiDiTE# make up WARNING: The MIRROR_BRIDGE_IN variable is not set. Defaulting to a blank string. WARNING: The MIRROR_BRIDGE_OUT variable is not set. Defaulting to a blank string. WARNING: The STACK_PRIORITY1 variable is not set. Defaulting to a blank string. WARNING: The STACKING_INTERFACES variable is not set. Defaulting to a blank string. WARNING: The STACK_MIRROR_INTERFACE variable is not set. Defaulting to a blank string. WARNING: The STACK_OFCONTROLLERS variable is not set. Defaulting to a blank string. Starting dovesnap_faucet_1 ... done Starting dovesnap_faucet_certstrap_1 ... done Starting dovesnap_ovs_1 ... done Starting dovesnap_gauge_1 ... done Starting dovesnap_faucetconfrpc_1 ... done Starting dovesnap_plugin_1 ... done docker-compose -f chassis-routers.yml -f net-ovs.yml -f chassis-bind9.yml -f chassis-ditto-database.yml -f chassis-ditto-register.yml -f chassis-ditto-small.yml -f chassis-docker-api-proxy.yml -f chassis-scada.yml -f chassis-workflows-viewer.yml -f performance-sample.yml -f savona-ditto-customization.yml -f savona-operator.yml -f savona-scada-customization.yml -f savona-sensors.yml -f savona-website.yml -f savona-workflows-viewer-customization.yml -f savona-cabinet-biblioteca.yml -f savona-cabinet-delfino.yml -f savona-cabinet-lagorio.yml -f savona-cabinet-locatelli.yml -f savona-cabinet-marchi.yml -f savona-cabinet-seb.yml -f chassis-vpn.yml up --remove-orphans Creating network "lidite_a30industrial" with driver "dovesnap" ERROR: Invalid subnet "10.10.10.0/24" : invalid CIDR address: "10.10.10.0/24" make: *** [Makefile:74: up] Error 1

OT-Plant commented 2 years ago

Hello,

some updates: I tried in a fresh debian OS and as in the previous I had some error output:

user@debian:~/LiDiTE$ sudo make build docker-compose -f chassis-routers.yml -f net-ovs.yml -f chassis-bind9.yml -f chassis-ditto-database.yml -f chassis-ditto-register.yml -f chassis-ditto-small.yml -f chassis-docker-api-proxy.yml -f chassis-scada.yml -f chassis-workflows-viewer.yml -f performance-sample.yml -f savona-ditto-customization.yml -f savona-operator.yml -f savona-scada-customization.yml -f savona-sensors.yml -f savona-website.yml -f savona-workflows-viewer-customization.yml -f savona-cabinet-biblioteca.yml -f savona-cabinet-delfino.yml -f savona-cabinet-lagorio.yml -f savona-cabinet-locatelli.yml -f savona-cabinet-marchi.yml -f savona-cabinet-seb.yml -f chassis-vpn.yml build ERROR: In file ./.env: environment variable name 'INTNAME ' may not contain whitespace. make: *** [Makefile:56: build] Error 1 ----> RESOLVED eliminating the whitespace

user@debian:~/LiDiTE$ sudo make build docker-compose -f chassis-routers.yml -f net-ovs.yml -f chassis-bind9.yml -f chassis-ditto-database.yml -f chassis-ditto-register.yml -f chassis-ditto-small.yml -f chassis-docker-api-proxy.yml -f chassis-scada.yml -f chassis-workflows-viewer.yml -f performance-sample.yml -f savona-ditto-customization.yml -f savona-operator.yml -f savona-scada-customization.yml -f savona-sensors.yml -f savona-website.yml -f savona-workflows-viewer-customization.yml -f savona-cabinet-biblioteca.yml -f savona-cabinet-delfino.yml -f savona-cabinet-lagorio.yml -f savona-cabinet-locatelli.yml -f savona-cabinet-marchi.yml -f savona-cabinet-seb.yml -f chassis-vpn.yml build ERROR: Version mismatch: file ./chassis-routers.yml specifies version 3.0 but extension file ./net-ovs.yml uses version 1 make: *** [Makefile:56: build] Error 1 ----> RESOLVED also for the VPN file

Then I ha an other output: user@debian:~/LiDiTE$ sudo make build docker-compose -f chassis-routers.yml -f net-ovs.yml -f chassis-bind9.yml -f chassis-ditto-database.yml -f chassis-ditto-register.yml -f chassis-ditto-small.yml -f chassis-docker-api-proxy.yml -f chassis-scada.yml -f chassis-workflows-viewer.yml -f performance-sample.yml -f savona-ditto-customization.yml -f savona-operator.yml -f savona-scada-customization.yml -f savona-sensors.yml -f savona-website.yml -f savona-workflows-viewer-customization.yml -f savona-cabinet-biblioteca.yml -f savona-cabinet-delfino.yml -f savona-cabinet-lagorio.yml -f savona-cabinet-locatelli.yml -f savona-cabinet-marchi.yml -f savona-cabinet-seb.yml -f chassis-vpn.yml build ERROR: The Compose file './net-ovs.yml' is invalid because: networks.zzz999_management.ipam.config.subnet is invalid: should use the CIDR format networks.a30_industrial.ipam.config.subnet is invalid: should use the CIDR format networks.z90_providernet.ipam.config.subnet is invalid: should use the CIDR format networks.z97_ent2ind.ipam.config.subnet is invalid: should use the CIDR format networks.z96_perimeter2ent.ipam.config.subnet is invalid: should use the CIDR format networks.a25_ind_enterprise.ipam.config.subnet is invalid: should use the CIDR format networks.z99_extnet.ipam.config.subnet is invalid: should use the CIDR format networks.z95_dmz.ipam.config.subnet is invalid: should use the CIDR format networks.a20_enterprise.ipam.config.subnet is invalid: should use the CIDR format networks.z98_simint.ipam.config.subnet is invalid: should use the CIDR format networks.a20_enterprise.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.a25_ind_enterprise.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.a30_industrial.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.z90_providernet.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.z95_dmz.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.z96_perimeter2ent.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.z97_ent2ind.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.z98_simint.ipam.config value Additional properties are not allowed ('gateway' was unexpected) networks.zzz999_management.ipam.config value Additional properties are not allowed ('gateway' was unexpected) make: *** [Makefile:56: build] Error 1:

Thanks