curl -X POST 'https://10.55.152.39/restapi/v11.0/Objects/DecyptionProfiles?name=jl-test&location=vsys&=vsys1&input-format=json'
-h 'X-PAN-KEY: *******'
-d '{
"entry": {
"@name": "decryptProfileTest",
"ssh-proxy": {
"block-if-no-resource": "no",
"block-ssh-errors": "no",
"block-unsupported-alg": "no",
"block-unsupported-version": "no"
},
"ssl-forward-proxy": {
"auto-include-altname": "no",
"block-client-cert": "no",
"block-expired-certificate": "no",
"block-if-no-resource": "no",
"block-timeout-cert": "no",
"block-tls13-downgrade-no-resource": "no",
"block-unknown-cert": "no",
"block-unsupported-cipher": "no",
"block-unsupported-version": "no",
"block-untrusted-issuer": "no",
"restrict-cert-exts": "no",
"strip-alpn": "no"
},
"ssl-inbound-proxy": {
"block-if-no-resource": "no",
"block-tls13-downgrade-no-resource": "no",
"block-unsupported-cipher": "no",
"block-unsupported-version": "no"
},
"ssl-no-proxy": {
"block-expired-certificate": "no",
"block-untrusted-issuer": "no"
},
"ssl-protocol-settings": {
"auth-algo-md5": "no",
"auth-algo-sha1": "yes",
"auth-algo-sha256": "yes",
"auth-algo-sha384": "yes",
"enc-algo-3des": "yes",
"enc-algo-aes-128-cbc": "yes",
"enc-algo-aes-128-gcm": "yes",
"enc-algo-aes-256-cbc": "yes",
"enc-algo-aes-256-gcm": "yes",
"enc-algo-chacha20-poly1305": "yes",
"enc-algo-rc4": "yes",
"keyxchg-algo-dhe": "yes",
"keyxchg-algo-ecdhe": "yes",
"keyxchg-algo-rsa": "yes",
"max-version": "tls1-2",
"min-version": "tls1-0"
}
}
}'
The resulting success message:
{
"@code": "20",
"@status": "success",
"msg": "command succeeded"
}
Create a Decryption Forwarding Profile.
The following POST request creates a bidirectional security
chain with devices at 1.1.1.1 and 1.1.1.2 using the Ethernet interfaces
you created earlier in this task.
curl -X POST 'https://10.55.152.39/restapi/v11.0/Objects/DecryptionForwardingProfiles?name=decryptionForwardTest&location=vsys&vsys=vsys1'
-H 'X-PAN-KEY: *******'
-d '{
"entry": {
"@location": "vsys",
"@name": "decryptionForwardTest",
"@vsys": "vsys1",
"flow": "bidirectional",
"health-check": {
"http-enable": "no",
"http-latency-enable": "no",
"path-enable": "no"
},
"interface-primary": "ethernet1/5",
"interface-secondary": "ethernet1/6",
"routed": {
"security-chain": {
"entry": [
{
"@name": "testchain",
"enable": "yes",
"first-device": "1.1.1.1",
"last-device": "1.1.1.2"
}
]
}
}
}
}'
The resulting success message:
{
"@code": "20",
"@status": "success",
"msg": "command succeeded"
}
Create a decryption policy using the decryption profile
and decryption forwarding profile you created before.
The following POST requests defines the traffic source
zones and destinations to enable decryption based on the testdecryptionprofile and testdecryptionforwading profiles.
curl -X POST 'https://10.55.152.39/restapi/v11.0/Policies/DecryptionRules?name=jltestrule&location=vsys&vsys=vsys1'
-H 'X-PAN-KEY: *****'
-d '{
"entry": {
"@location": "vsys",
"@name": "jltestrule",
"@uuid": "b4d66137-9678-4b9d-9105-e881899d1125",
"@vsys": "vsys1",
"action": "decrypt-and-forward",
"category": {
"member": [
"any"
]
},
"destination": {
"member": [
"any"
]
},
"destination-hip": {
"member": [
"any"
]
},
"forwarding-profile": "testdecryptionforwarding",
"from": {
"member": [
"l3-untrust"
]
},
"negate-source": "no",
"profile": "testdecryptionprofile",
"service": {
"member": [
"any"
]
},
"source": {
"member": [
"Test"
]
},
"source-hip": {
"member": [
"any"
]
},
"source-user": {
"member": [
"any"
]
},
"to": {
"member": [
"l2-trust"
]
},
"type": {
"ssl-forward-proxy": {}
}
}
}'
The resulting success message:
{
"@code": "20",
"@status": "success",
"msg": "command succeeded"
}