1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 13:22:36 +01:00

added tps_zone_config and tps_base_config v1

This commit is contained in:
Rich Groves 2016-08-19 13:27:27 -07:00
parent 70c388abdc
commit e82bfdbe46
2 changed files with 359 additions and 65 deletions

@ -3,7 +3,6 @@ a10-url:/axapi/v3/admin
"admin-list": [
{
"user":"admin",
"uuid":"57937c0c-06cb-11e6-86f7-000c2998bd62",
"password": {
"encrypted-in-module":"sCyT4priW1OZSg3m1RiAf0bOyZ0Odnf1rQRp+BHohemGp1YhW+V1NjwQjLjV2wDn",
}
@ -36,16 +35,6 @@ a10-url:/axapi/v3/system
}
}
a10-url:/axapi/v3/class-list
{
"class-list-list": [
{
"name":"ddos-block",
"file":1,
}
]
}
a10-url:/axapi/v3/hostname
{
"hostname": {
@ -57,10 +46,10 @@ a10-url:/axapi/v3/interface/management
{
"management": {
"ip": {
"ipv4-address":"x.x.x.x",
"ipv4-netmask":"x.x.x.x",
"ipv4-address”:”x.x.x.x",
"ipv4-netmask”:”x.x.x.x",
"control-apps-use-mgmt-port":1,
"default-gateway":"x.x.x.x"
"default-gateway”:”x.x.x.x"
},
"action":"enable",
}
@ -73,9 +62,6 @@ a10-url:/axapi/v3/interface/ethernet
"ifnum":1,
"name":"Inbound",
"action":"enable",
"ddos": {
"inside":1,
}
},
{
"ifnum":2,
@ -174,6 +160,17 @@ a10-url:/axapi/v3/ddos/src/default
]
}
a10-url:/axapi/v3/ddos/dst/default
{
"default-list": [
{
"default-address-type":"ip",
},
{
"default-address-type":"ipv6",
}
]
}
a10-url:/axapi/v3/logging/syslog
{
"syslog": {
@ -185,7 +182,9 @@ a10-url:/axapi/v3/logging/host/ipv4addr
{
"ipv4addr-list": [
{
"host-ipv4":"x.x.x.x",
"host-ipv4”:”x.x.x.x",
"use-mgmt-port":1,
"tcp":0,
}
]
}
@ -194,15 +193,15 @@ a10-url:/axapi/v3/router/bgp
{
"bgp-list": [
{
"as-number":2,
"as-number”:x,
"bgp": {
"log-neighbor-changes":1,
"router-id":"x.x.x.x"
"router-id”:”x.x.x.x"
},
"neighbor": {
"ipv4-neighbor-list": [
{
"neighbor-ipv4":"x.x.x.x",
"neighbor-ipv4”:”x.x.x.x",
"nbr-remote-as":1,
"description":"upstream",
"neighbor-route-map-lists": [
@ -241,7 +240,7 @@ a10-url:/axapi/v3/sflow/collector/ip
{
"ip-list": [
{
"addr":"x.x.x.x",
"addr”:”x.x.x.x",
"port":6343,
"use-mgmt-port":1,
}
@ -251,7 +250,7 @@ a10-url:/axapi/v3/sflow/collector/ip
a10-url:/axapi/v3/sflow/agent/address
{
"address": {
"ip":"x.x.x.x",
"ip”:”x.x.x.x",
}
}
@ -266,33 +265,3 @@ a10-url:/axapi/v3/sflow/sampling
],
}
}
a10-url:/axapi/v3/vcs-vblades/stat
{
"stat-list": [
{
"vblade-id":1,
},
{
"vblade-id":2,
},
{
"vblade-id":3,
},
{
"vblade-id":4,
},
{
"vblade-id":5,
},
{
"vblade-id":6,
},
{
"vblade-id":7,
},
{
"vblade-id":8,
}
]
}

@ -2,10 +2,10 @@ a10-url:/axapi/v3/ddos/dst/zone
{
"zone-list": [
{
"zone-name":"zone-x.x.x.x",
"zone-name”:"xxxx",
"ip": [
{
"ip-addr":"x.x.x.x"
"ip-addr”:”x.x.x.x"
}
],
"operational-mode":"monitor",
@ -40,9 +40,9 @@ a10-url:/axapi/v3/ddos/dst/zone
]
},
"port": {
"zone-service-other-list": [
"zone-service-list": [
{
"port-other":"other",
"port-num":20,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
@ -66,7 +66,103 @@ a10-url:/axapi/v3/ddos/dst/zone
]
},
{
"port-other":"other",
"port-num":21,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":22,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":25,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":53,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":53,
"protocol":"udp",
"detection-enable":1,
"level-list": [
@ -88,10 +184,239 @@ a10-url:/axapi/v3/ddos/dst/zone
},
}
]
},
{
"port-num":80,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":110,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":143,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":443,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":587,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":993,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":995,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":5060,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
},
{
"port-num":5061,
"protocol":"tcp",
"detection-enable":1,
"level-list": [
{
"level-num":"0",
"zone-escalation-score":10,
"indicator-list": [
{
"type":"pkt-rate",
"score":20,
"zone-threshold-num":1,
}
]
},
{
"level-num":"1",
"zone-template": {
"tcp":"tcp-protect1"
},
}
]
}
],
"zone-service-other-list": [
{
"port-other":"other",
"protocol":"tcp",
"detection-enable":1,
"deny":1,
},
{
"port-other":"other",
"protocol":"udp",
"detection-enable":1,
"deny":1,
}
]
}
}
]
}