File: //usr/syno/etc/firewall.d/1.json
{
"adapterPolicyMap" : {
"global" : 2,
"ovs_eth0" : 0
},
"name" : "default",
"rules" : {
"global" : [
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "Service",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 2,
"portList" : [
"dms",
"dms_https",
"http",
"https",
"cloudstation",
"ssh",
"webdav_http",
"webdavs_https",
"vpn_server_openvpn",
"HybridShare",
"MariaDB10",
"vs60",
"ntp",
"cifs",
"btrfs_snapshot_replication",
"iscsitrg",
"lunreplication",
"windowsODX",
"rodsp_vdisk",
"storage_console"
],
"protocol" : 3,
"ruleIndex" : 0,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 3,
"ipList" : [ "FR" ],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 3,
"portList" : [],
"protocol" : 3,
"ruleIndex" : 1,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 3,
"ipList" : [
"AR",
"AU",
"BQ",
"BR",
"CN",
"ID",
"IN",
"NL",
"OM",
"PH",
"SX",
"UA",
"UM",
"US",
"VN"
],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 1,
"portDirect" : 0,
"portGroup" : 3,
"portList" : [],
"protocol" : 3,
"ruleIndex" : 2,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 3,
"ipList" : [
"AE",
"AL",
"EG",
"GB",
"IQ",
"IR",
"KH",
"MY",
"PK",
"PS",
"RU",
"TH",
"TN",
"US",
"VE"
],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 1,
"portDirect" : 0,
"portGroup" : 3,
"portList" : [],
"protocol" : 3,
"ruleIndex" : 3,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 3,
"ipList" : [ "BD", "DZ", "KE" ],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 1,
"portDirect" : 0,
"portGroup" : 3,
"portList" : [],
"protocol" : 3,
"ruleIndex" : 4,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 1,
"portList" : [ "25" ],
"protocol" : 1,
"ruleIndex" : 5,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 0,
"portList" : [ "webdavs_https" ],
"protocol" : 1,
"ruleIndex" : 6,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 1,
"portList" : [ "1194" ],
"protocol" : 3,
"ruleIndex" : 7,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 0,
"portList" : [ "MariaDB10" ],
"protocol" : 1,
"ruleIndex" : 8,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 0,
"portList" : [ "ntp", "vs60" ],
"protocol" : 2,
"ruleIndex" : 9,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 0,
"portList" : [ "ntp", "cifs", "vs60" ],
"protocol" : 3,
"ruleIndex" : 10,
"table" : "filter"
},
{
"adapterDirect" : 1,
"blLog" : false,
"chainList" : [ "FORWARD_FIREWALL", "INPUT_FIREWALL" ],
"enable" : true,
"ipDirect" : 1,
"ipGroup" : 5,
"ipList" : [],
"ipType" : 2,
"labelList" : [],
"name" : "",
"policy" : 0,
"portDirect" : 0,
"portGroup" : 1,
"portList" : [ "4449" ],
"protocol" : 3,
"ruleIndex" : 11,
"table" : "filter"
}
]
}
}