{
"title": "Firewall01",
"content": "firewall",
"icmp": "Y",
"rules": [
{
"bound": "IN",
"protocol": "TCP",
"port": "80",
"ip": "192.168.1.10/24",
"content": "Allow inbound HTTP traffic on port 80",
"title": "Allow HTTP"
},
{
"bound": "OUT",
"protocol": "UDP",
"port": "53",
"ip": "10.0.0.5/16",
"content": "Allow outbound DNS traffic on port 53",
"title": "Allow DNS"
}
]
}
curl --location --request POST 'https://api-kr.iwinv.kr/v1/firewall' \
--header 'X-iwinv-Timestamp: {{timestamp}}' \
--header 'X-iwinv-Credential: {{accesskey}}' \
--header 'X-iwinv-Signature: {{signature}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "Firewall01",
"content": "firewall",
"icmp": "Y",
"rules": [
{
"bound": "IN",
"protocol": "TCP",
"port": "80",
"ip": "192.168.1.10/24",
"content": "Allow inbound HTTP traffic on port 80",
"title": "Allow HTTP"
},
{
"bound": "OUT",
"protocol": "UDP",
"port": "53",
"ip": "10.0.0.5/16",
"content": "Allow outbound DNS traffic on port 53",
"title": "Allow DNS"
}
]
}'
{
"code": "0x00",
"error_code": "SUCCESS",
"message": "",
"result": [
{
"firewall_id": "621",
"title": "APISEND20250222",
"content": "apisend",
"icmp": "Y",
"rules": [
{
"idx": 6965,
"bound": "IN",
"protocol": "TCP",
"port": "1-30",
"ip": "112.168.1.10/32",
"content": "Aport 80",
"title": "Allow HTTP"
},
{
"idx": 6966,
"bound": "OUT",
"protocol": "UDP",
"port": "530",
"ip": "10.0.0.5/16",
"content": "port 53",
"title": "Allow DNS"
}
]
}
],
"count": 1
}