Set The 1 1 NAT Mapping Rules For An MX Network
PUT {{baseUrl}}/networks/:networkId/appliance/firewall/oneToOneNatRules
Set the 1:1 NAT mapping rules for an MX network #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: rules| array| An array of 1:1 nat rules
Request Body
{"rules"=>[{"lanIp"=>"<string>", "name"=>"<string>", "publicIp"=>"<string>", "uplink"=>"<string>", "allowedInbound"=>[{"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}, {"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}]}, {"lanIp"=>"<string>", "name"=>"<string>", "publicIp"=>"<string>", "uplink"=>"<string>", "allowedInbound"=>[{"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}, {"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Cisco-Meraki-API-Key | null | ||
Content-Type | string |
RESPONSES
status: OK
{"rules":[{"name":"Service behind NAT","lanIp":"192.168.128.22","publicIp":"146.12.3.33","uplink":"internet1","allowedInbound":[{"protocol":"tcp","destinationPorts":["80"],"allowedIps":["10.82.112.0/24","10.82.0.0/16"]},{"protocol":"udp","destinationPorts":["8080"],"allowedIps":["10.81.110.5","10.81.0.0/16"]}]}]}