String allZones = CommandUtil.exeCmd("firewall-cmd --list-all-zones");模拟一下返回结果
时间: 2024-05-25 09:16:46 浏览: 137
allZones = "public (default)\n interfaces: eth0\n sources: \n services: dhcpv6-client mdns ssh\n ports: \n protocols: \n masquerade: no\n forward-ports: \n icmp-blocks: \n rich rules: \n\ninternal\n interfaces: \n sources: \n services: \n ports: \n protocols: \n masquerade: no\n forward-ports: \n icmp-blocks: \n rich rules: \n\nexternal\n interfaces: eth1\n sources: \n services: dhcpv6-client mdns ssh\n ports: \n protocols: \n masquerade: no\n forward-ports: \n icmp-blocks: \n rich rules: "
阅读全文