aaPanel_Kern so you can understand the problem is on the firewall_main.py code not on the json , is exporting the port.json with these fields ["id", "protocol", "ports", "types", "address", "brief", "addtime", "domain", "sid", "chain"] and when importing is looking only for these ["id", "protocol", "ports", "types", "address", "brief", "addtime"] , hope you understand now , "domain", "sid", "chain" are missing on the python code.