Skip to content

Instantly share code, notes, and snippets.

@sid137
Created December 11, 2019 15:09
Show Gist options
  • Save sid137/0238cefb2bdc0b2e9d63ed5ec5961c9b to your computer and use it in GitHub Desktop.
Save sid137/0238cefb2bdc0b2e9d63ed5ec5961c9b to your computer and use it in GitHub Desktop.
{
"id": 1,
"organization": 1,
"name": "base-template",
"timezone": "America/Los_Angeles",
"traffic_shaping_settings": {
"rules": [
{
"priority": "normal",
"definitions": [
{
"type": "application",
"value": {
"id": "meraki:layer7/application/94",
"name": "WordPress"
}
}
],
"dscpTagValue": null,
"perClientBandwidthLimits": {
"settings": "custom",
"bandwidthLimits": {
"limitUp": 500,
"limitDown": 500
}
}
}
],
"defaultRulesEnabled": false
},
"content_filtering_settings": {
"allowedUrlPatterns": [],
"blockedUrlPatterns": [],
"blockedUrlCategories": []
},
"firewalled_services": [
{
"access": "unrestricted",
"service": "ICMP"
},
{
"access": "restricted",
"service": "web",
"allowedIps": [
"232.12.11.89",
"11.53.21.42"
]
},
{
"access": "blocked",
"service": "SNMP"
}
],
"group_policies": [
{
"name": "Ozgur",
"bandwidth": {
"settings": "network default",
"bandwidthLimits": {
"limitUp": null,
"limitDown": null
}
},
"scheduling": {
"friday": {
"to": "24:00",
"from": "07:30",
"active": true
},
"monday": {
"to": "24:00",
"from": "07:00",
"active": true
},
"sunday": {
"to": "24:00",
"from": "07:00",
"active": true
},
"enabled": true,
"tuesday": {
"to": "24:00",
"from": "00:00",
"active": true
},
"saturday": {
"to": "24:00",
"from": "00:00",
"active": true
},
"thursday": {
"to": "24:00",
"from": "00:00",
"active": true
},
"wednesday": {
"to": "24:00",
"from": "07:00",
"active": true
}
},
"vlanTagging": {
"settings": "ignore"
},
"groupPolicyId": 100,
"bonjourForwarding": {
"rules": [],
"settings": "ignore"
},
"splashAuthSettings": "network default",
"firewallAndTrafficShaping": {
"settings": "network default",
"l3FirewallRules": [],
"l7FirewallRules": [],
"trafficShapingRules": []
}
}
],
"http_servers": [
{
"id": "aHR0cHM6Ly9hcHAuZGV2LmJkaWdpdGFsYXBwLmNvbQ==",
"url": "https://app.dev.bdigitalapp.com",
"name": "Test 2",
"networkId": "L_662029145223471715",
"sharedSecret": "meinsecret"
},
{
"id": "aHR0cHM6Ly9ib3VuZGxlc3NkaWdpdGFsLmZy",
"url": "https://boundlessdigital.fr",
"name": "Test 1",
"networkId": "L_662029145223471715",
"sharedSecret": "mysecret"
}
],
"intrusion_settings": {},
"malware_settings": {},
"mx_1_to_1_nat_rules": [
{
"name": "Test",
"lanIp": "192.168.128.1",
"uplink": "internet1",
"publicIp": "23.53.23.53",
"allowedInbound": []
}
],
"mx_1_to_many_nat_rules": [
{
"uplink": "internet1",
"publicIp": "23.53.23.53",
"portRules": [
{
"name": "Test 1",
"localIp": "192.168.128.1",
"protocol": "tcp",
"localPort": "81",
"allowedIps": [
"23.53.23.53"
],
"publicPort": "80"
},
{
"name": "Test 2",
"localIp": "192.168.128.1",
"protocol": "tcp",
"localPort": "83",
"allowedIps": [
"23.53.23.53"
],
"publicPort": "81"
}
]
}
],
"mx_cellular_firewall_rules": [
{
"policy": "deny",
"comment": "Mein Rule",
"srcCidr": "192.168.128.1/32",
"srcPort": "12",
"destCidr": "34.53.13.53/32",
"destPort": "23",
"protocol": "udp",
"syslogEnabled": true
},
{
"policy": "allow",
"comment": "Default rule",
"srcCidr": "Any",
"srcPort": "Any",
"destCidr": "Any",
"destPort": "Any",
"protocol": "Any",
"syslogEnabled": false
}
],
"mx_l3_firewall_rules": [
{
"policy": "deny",
"comment": "My Rule",
"srcCidr": "192.168.128.1/32",
"srcPort": "80",
"destCidr": "33.44.55.66/32",
"destPort": "443",
"protocol": "tcp",
"syslogEnabled": true
},
{
"policy": "allow",
"comment": "Default rule",
"srcCidr": "Any",
"srcPort": "Any",
"destCidr": "Any",
"destPort": "Any",
"protocol": "Any",
"syslogEnabled": true
}
],
"mx_l7_firewall_rules": [
{
"type": "applicationCategory",
"value": {
"id": "meraki:layer7/category/23",
"name": "Web payments"
},
"policy": "deny"
}
],
"mx_port_forwarding_rules": [
{
"name": "Test",
"lanIp": "192.168.128.1",
"uplink": "both",
"protocol": "tcp",
"localPort": "80",
"allowedIps": [
"12.23.43.23"
],
"publicPort": "80"
}
],
"mx_network_appliance_ports": null,
"mx_warm_spare_settings": {
"enabled": false,
"spareSerial": null,
"primarySerial": null
},
"sm_target_groups": null,
"net_flow_settings": {
"collectorIp": "11.22.55.66",
"collectorPort": 8090,
"reportingEnabled": true
},
"wireless_rf_profiles": [
{
"id": "662029145223464953",
"name": "Template Profile",
"networkId": "L_662029145223471715",
"apBandSettings": {
"bandOperationMode": "dual",
"bandSteeringEnabled": false
},
"minBitrateType": "band",
"fiveGhzSettings": {
"rxsop": null,
"maxPower": 17,
"minPower": 11,
"minBitrate": 24,
"channelWidth": "20",
"validAutoChannels": [
36,
40,
44,
48,
52,
56,
60,
64,
100,
104,
108,
112,
116,
120,
124,
128,
132,
136,
140,
144,
149,
153,
157,
161,
165
]
},
"bandSelectionType": "ap",
"twoFourGhzSettings": {
"rxsop": null,
"maxPower": 14,
"minPower": 8,
"axEnabled": true,
"minBitrate": 24,
"validAutoChannels": [
1,
6,
11
]
},
"clientBalancingEnabled": true
}
],
"snmp_settings": {
"access": "community",
"communityString": "community"
},
"static_routes": [
{
"id": "e510a38a-0720-4321-8160-aee9dd8b6dea",
"name": "Test",
"subnet": "192.168.132.0/24",
"enabled": true,
"gatewayIp": "192.168.128.1",
"networkId": "L_662029145223471715",
"reservedIpRanges": [],
"fixedIpAssignments": {}
}
],
"switch_port_schedules": [
{
"id": "662029145223463161",
"name": "New schedule",
"networkId": "L_662029145223471715",
"portSchedule": {
"friday": {
"to": "24:00",
"from": "00:00",
"active": true
},
"monday": {
"to": "20:30",
"from": "04:30",
"active": true
},
"sunday": {
"to": "24:00",
"from": "00:00",
"active": true
},
"tuesday": {
"to": "24:00",
"from": "00:00",
"active": true
},
"saturday": {
"to": "21:00",
"from": "04:00",
"active": true
},
"thursday": {
"to": "20:30",
"from": "04:30",
"active": true
},
"wednesday": {
"to": "24:00",
"from": "00:00",
"active": true
}
}
}
],
"switch_settings": {
"vlan": 1,
"powerExceptions": [],
"useCombinedPower": false
},
"syslog_servers": [
{
"host": "1.2.3.4",
"port": "514",
"roles": [
"URLs"
]
},
{
"host": "52.17.166.55",
"port": "514",
"roles": [
"Flows",
"Wireless event log"
]
},
{
"host": "52.16.168.59",
"port": "514",
"roles": [
"Flows",
"Wireless event log"
]
},
{
"host": "52.17.171.16",
"port": "514",
"roles": [
"Flows",
"Wireless event log"
]
},
{
"host": "2.3.4.5",
"port": "514",
"roles": [
"Appliance event log"
]
}
],
"traffic_analysis_settings": {
"mode": "detailed",
"customPieChartItems": [
{
"name": "Yes",
"type": "port",
"value": "443"
}
]
},
"uplink_settings": {
"bandwidthLimits": {
"wan1": {
"limitUp": 5000,
"limitDown": 5000
},
"cellular": {
"limitUp": 5120,
"limitDown": 5120
}
}
},
"vlans": [
{
"id": 1,
"name": "Default",
"subnet": "192.168.128.0/24",
"networkId": "L_662029145223471715",
"applianceIp": "192.168.128.1",
"dhcpOptions": [],
"dhcpHandling": "Run a DHCP server",
"dhcpLeaseTime": "1 day",
"dnsNameservers": "upstream_dns",
"reservedIpRanges": [],
"fixedIpAssignments": {},
"dhcpBootOptionsEnabled": false
},
{
"id": 2,
"name": "Test",
"subnet": "192.168.129.0/24",
"networkId": "L_662029145223471715",
"applianceIp": "192.168.129.1",
"dhcpOptions": [],
"dhcpHandling": "Run a DHCP server",
"dhcpLeaseTime": "1 day",
"dnsNameservers": "upstream_dns",
"reservedIpRanges": [],
"fixedIpAssignments": {},
"dhcpBootOptionsEnabled": false
}
],
"bluetooth_settings": {
"scanningEnabled": false,
"advertisingEnabled": false
},
"site_to_site_vpn_settings": {
"hubs": [],
"mode": "hub",
"subnets": [
{
"useVpn": false,
"localSubnet": "192.168.128.0/24"
},
{
"useVpn": false,
"localSubnet": "192.168.129.0/24"
},
{
"useVpn": false,
"localSubnet": "192.168.132.0/24"
}
]
},
"ssids": [
{
"id": 1,
"definition": {
"name": "Test Template - wireless WiFi",
"number": 0,
"enabled": true,
"authMode": "open",
"minBitrate": 11,
"splashPage": "Password-protected with custom RADIUS",
"bandSelection": "Dual band operation",
"radiusServers": [
{
"host": "11.22.33.44",
"port": 123
},
{
"host": "22.33.44.55",
"port": 234
}
],
"splashTimeout": "1440 minutes",
"adminSplashUrl": null,
"ipAssignmentMode": "NAT mode",
"radiusCoaEnabled": null,
"walledGardenRanges": "google.com",
"ssidAdminAccessible": false,
"walledGardenEnabled": true,
"radiusFailoverPolicy": "Deny access",
"perClientBandwidthLimitUp": 100,
"radiusLoadBalancingPolicy": "Strict priority order",
"perClientBandwidthLimitDown": 100,
"radiusAttributeForGroupPolicies": "Filter-Id"
},
"traffic_shaping_settings": {
"rules": [
{
"definitions": [
{
"type": "application",
"value": {
"id": "meraki:layer7/application/39",
"name": "Hotmail"
}
}
],
"pcpTagValue": null,
"dscpTagValue": null,
"perClientBandwidthLimits": {
"settings": "custom",
"bandwidthLimits": {
"limitUp": 50,
"limitDown": 80
}
}
}
],
"defaultRulesEnabled": false,
"trafficShapingEnabled": true
},
"mr_l3_firewall_rules": [
{
"policy": "deny",
"comment": "Custom Port Deny",
"destCidr": "Any",
"destPort": "8765",
"protocol": "tcp"
},
{
"policy": "allow",
"comment": "Custom Port Allow",
"destCidr": "Any",
"destPort": "1234",
"protocol": "udp"
},
{
"policy": "deny",
"comment": "Wireless clients accessing LAN",
"destCidr": "Local LAN",
"destPort": "Any",
"protocol": "Any"
},
{
"policy": "allow",
"comment": "Default rule",
"destCidr": "Any",
"destPort": "Any",
"protocol": "Any"
}
],
"splash_page_settings": {
"splashUrl": null,
"ssidNumber": 0,
"splashMethod": "Password-protected with custom RADIUS",
"useSplashUrl": false
}
},
{
"id": 2,
"definition": {
"name": "My 2nd SSID",
"number": 1,
"enabled": true,
"authMode": "open",
"minBitrate": 11,
"splashPage": "None",
"bandSelection": "Dual band operation",
"ipAssignmentMode": "NAT mode",
"ssidAdminAccessible": false,
"perClientBandwidthLimitUp": 0,
"perClientBandwidthLimitDown": 0
},
"traffic_shaping_settings": {
"rules": [],
"defaultRulesEnabled": true,
"trafficShapingEnabled": true
},
"mr_l3_firewall_rules": [
{
"policy": "allow",
"comment": "Wireless clients accessing LAN",
"destCidr": "Local LAN",
"destPort": "Any",
"protocol": "Any"
},
{
"policy": "allow",
"comment": "Default rule",
"destCidr": "Any",
"destPort": "Any",
"protocol": "Any"
}
],
"splash_page_settings": {
"splashUrl": null,
"ssidNumber": 1,
"splashMethod": "None",
"useSplashUrl": false
}
},
{
"id": 3,
"definition": {
"name": "Configured",
"number": 4,
"enabled": true,
"authMode": "open",
"minBitrate": 11,
"splashPage": "Password-protected with custom RADIUS",
"bandSelection": "Dual band operation",
"radiusServers": [
{
"host": "63.34.160.189",
"port": 1812
}
],
"splashTimeout": "1440 minutes",
"adminSplashUrl": "https://captive.dev.bdigitalapp.com/portal/",
"ipAssignmentMode": "NAT mode",
"radiusCoaEnabled": null,
"walledGardenRanges": "*.fbcdn.net\n*.sentry.io\n*.twitter.com\n*.facebook.net\n*.akamaihd.net\n*.twimg.com\n*.facebook.com\n*.googleapis.com\n*.bdigitalapp.com\n*.dev.bdigitalapp.com",
"ssidAdminAccessible": false,
"walledGardenEnabled": true,
"radiusFailoverPolicy": "Deny access",
"perClientBandwidthLimitUp": 0,
"radiusLoadBalancingPolicy": "Round robin",
"perClientBandwidthLimitDown": 0,
"radiusAttributeForGroupPolicies": "Filter-Id"
},
"traffic_shaping_settings": {
"rules": [],
"defaultRulesEnabled": true,
"trafficShapingEnabled": true
},
"mr_l3_firewall_rules": [
{
"policy": "allow",
"comment": "Wireless clients accessing LAN",
"destCidr": "Local LAN",
"destPort": "Any",
"protocol": "Any"
},
{
"policy": "allow",
"comment": "Default rule",
"destCidr": "Any",
"destPort": "Any",
"protocol": "Any"
}
],
"splash_page_settings": {
"splashUrl": "https://captive.dev.bdigitalapp.com/portal/",
"ssidNumber": 4,
"splashMethod": "Password-protected with custom RADIUS",
"useSplashUrl": true
}
},
{
"id": 4,
"definition": {
"name": "Configured 2",
"number": 6,
"enabled": true,
"authMode": "open",
"minBitrate": 11,
"splashPage": "Password-protected with custom RADIUS",
"bandSelection": "Dual band operation",
"radiusServers": [
{
"host": "63.34.160.189",
"port": 1812
}
],
"splashTimeout": "1440 minutes",
"adminSplashUrl": "https://captive.dev.bdigitalapp.com/portal/",
"ipAssignmentMode": "NAT mode",
"radiusCoaEnabled": null,
"walledGardenRanges": "*.twitter.com\n*.sentry.io\n*.bdigitalapp.com\n*.googleapis.com\n*.facebook.com\n*.fbcdn.net\n*.facebook.net\n*.akamaihd.net\n*.dev.bdigitalapp.com\n*.twimg.com",
"ssidAdminAccessible": false,
"walledGardenEnabled": true,
"radiusFailoverPolicy": "Deny access",
"perClientBandwidthLimitUp": 0,
"radiusLoadBalancingPolicy": "Round robin",
"perClientBandwidthLimitDown": 0,
"radiusAttributeForGroupPolicies": "Filter-Id"
},
"traffic_shaping_settings": {
"rules": [],
"defaultRulesEnabled": true,
"trafficShapingEnabled": true
},
"mr_l3_firewall_rules": [
{
"policy": "allow",
"comment": "Wireless clients accessing LAN",
"destCidr": "Local LAN",
"destPort": "Any",
"protocol": "Any"
},
{
"policy": "allow",
"comment": "Default rule",
"destCidr": "Any",
"destPort": "Any",
"protocol": "Any"
}
],
"splash_page_settings": {
"splashUrl": "https://captive.dev.bdigitalapp.com/portal/",
"ssidNumber": 6,
"splashMethod": "Password-protected with custom RADIUS",
"useSplashUrl": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment