Skip to main content
Tannu86
Explorer
Jan 26, 2023 6:23 PM UTC
Question

ZTNA

Hello everybody,
I have a problem with ZTNA, I performed the various configuration steps that I found in the official guide, but I can't get the remote access in https of my Vcenter and my Firewall to work. It gives me this error for my fortigate :403 Forbidden: Wrong proxy service was requested
The web server reported that an error occurred while trying to access the website. Please go back to the previous page.
URL https//:33.33.45.66:4556


while for the VCenter:
ZTNA Access Denied
The page you requested has been blocked by a ZTNA restriction.
Details: API Gateway Denied.

can you give me a hand?
Thanks so much

4 replies

Anthony_E
Staff
Staff
Jan 29, 2023 2:23 PM UTC

Hello,

 

Thank you for using the Community Forum.

I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.


Regards,

Best Regards
btan
Staff & Editor
Staff & Editor
Jan 30, 2023 2:18 AM UTC

Hello,

 

Based on your description, looks like you are implementing:

https://docs.fortinet.com/document/fortigate/7.2.3/administration-guide/101256/ztna-tcp-forwarding-access-proxy-example

 

Your issue symptom has too many possibilities. Let's try to narrow it down.
Your first error: Forbidden: Wrong proxy service was requested
The web server reported that an error occurred while trying to access the website. Please go back to the previous page.
> This can possibly due to ZTNA cert somehow not ready in the endpoint. Check if your endpoint in EMS endpoint pane, 'ZTNA Serial Number' should be visible.

btan_0-1675044640632.png

And for your vcenter error:

ZTNA Access Denied
The page you requested has been blocked by a ZTNA restriction.
Details: API Gateway Denied.

It can be due to misconfiguration on 'config api-gateway' part in FGT. Or the ZTNA destination in endpoint profile

config firewall access-proxy     edit "ZTNA-tcp-server"         set vip "ZTNA-tcp-server"         set client-cert enable         config api-gateway


Nevertheless, you can try below debug command in FGT and reproduce the issue:

CLI session1:

#diag debug reset
#diag wad debug enable category all
#diag wad debug enable level verbose
#diag debug console timestamp en
#diag wad filter src x.x.x.x <--- endpoint public IP address
#diag wad filter dport 4556 <--- your configured port in proxy gateway
#diag debug enable

~Reproduce the issue~

Open another CLI session2:
diag wad user list
diag wad session list
diag test app wad 1000
diag test app wad 155

 

The output may give clues why it is not working.

Logs in ZTNA traffic will be helpful as well:
FGT > Logs & Reports > ZTNA traffic

Tannu86
Tannu86Author
Explorer
Jan 31, 2023 10:33 AM UTC

Hello and thanks for your advice, I will try to replicate your content.
I'll update you as soon as possible.
Best regards

jbrines
Explorer II
Nov 6, 2024 4:25 PM UTC

Hi @Tannu86 ,

 

Did you get this resolved, I am experiencing the same issue with accessing file shares on a File Server

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024