stratosphereips / NetSecGame

An environment simulation for networks security tasks for development and testing AI based agents. Part of AI Dojo project
GNU General Public License v2.0
37 stars 5 forks source link

Some FW rules from the configuration were not correctly read and added to the FW. Fix #245

Closed eldraco closed 4 hours ago

eldraco commented 4 hours ago

The rules from networks to host in the current scenario configuration

cyst_cfg.FirewallRule(cyst_cfg.IPNetwork("192.168.1.0/24"), cyst_cfg.IPNetwork("192.168.1.1/32"), "*", cyst_cfg.FirewallPolicy.ALLOW),
cyst_cfg.FirewallRule(cyst_cfg.IPNetwork("192.168.2.0/24"), cyst_cfg.IPNetwork("192.168.2.1/32"), "*", cyst_cfg.FirewallPolicy.ALLOW)

Are never added to the FW and are not respected.

eldraco commented 4 hours ago

This was wrong. It is correctly done.