Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
chrisW4
New Contributor III

ZTNA - RDP Connection

Hi,

 

I've configured a ZTNA Server + Rule + Destination for RDP Session to a certain server.

Therefore I configured a PROXY Port  which is then TCP Forwarding to Port 3389.

 

Anyhow no RDP connection can be established.

Any ideas?

 

KR

 

Chris

Christoph Christian
Christoph Christian
1 Solution
btan

Hello,


I recommend you create a FortiCare ticket to us. 
Attach your endpoint XML file and FGT config file to the ticket.
ETAC team should be able to assist you once we get the details.

Regards,
Bon

View solution in original post

5 REPLIES 5
Faiza_Emam_Delhi
Contributor II

 

Here are a few things you can try to troubleshoot the issue:

 

1. Verify that your ZTNA server is up and running. You can do this by checking the server logs or by pinging the server.

 

2. Check that your firewall is not blocking the connection. Make sure that the required ports (including port 3389 for RDP) are open and accessible.

 

3. Verify that the TCP forwarding is configured correctly. Double-check that the proxy port is correctly forwarding to port 3389.

 

4. Check that the RDP server is configured correctly. Ensure that the RDP settings on the destination server are configured to allow remote connections.

 

I hope these suggestions help. Let me know if you have any further questions or if there's anything else I can assist you with.

Thanks & Regards,
Faizal Emam
Thanks & Regards,Faizal Emam
btan
Staff
Staff

Hi Chris,

 

Example of your setup: https://docs.fortinet.com/document/fortigate/7.2.4/administration-guide/101256/ztna-tcp-forwarding-a...

 

Generally it should be some misconfiguration somewhere.

You can find the clues in FGT > Logs > ZTNA traffic.
Or run below debug command while attempting to RDP via ZTNA:

#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
#diag wad filter dport 20443  <--- your proxy port
#diag debug enable

~~~Attempt to RDP~~~
diag debug disable

diag debug reset

Regards,
Bon
chrisW4
New Contributor III

Thank you,

 

to be honest in the ZTNA Log on the FGT I checked already last time.

Nothing is written there.

 

With the Debug commands via CLI I don't get any Info I know what it's talking about.

 

There is something written about redirect on Port 9443

 

[V]2023-06-19 10:56:58.410711 [p:260] wad_dispatcher_send_fd_to_worker :1351 redirect 61 accepted yy.yyy.yyy.yyy:30204 -> xx.xxx.xxx.xxx:9443 on 61, forw
arding to worker(0x7fa06c5048)
[I]2023-06-19 10:56:58.410734 [p:260] wad_ipc_srv_send_msg :1180 send conn=0x7fa06c5048 msg=0x7fa06a6048
[I]2023-06-19 10:56:58.410744 [p:260] wad_unix_stream_sendmsg :246 WAD unix stream stream 0x7fa06c5048 msg=0x7fa06a6048 n_fd=1.
[I]2023-06-19 10:56:58.410786 [p:261] wad_unix_stream_on_read_msg :488 recvmsg
[I]2023-06-19 10:56:58.410826 [p:261] wad_unix_stream_on_read_msg :488 recvmsg
[I]2023-06-19 10:56:58.410840 [p:261] wad_tcp_port_alloc :1454 alloc tcp_port=0x7faa579c08
[I]2023-06-19 10:56:58.411036 [p:261] wad_unix_stream_flush_data :595 WAD unix stream stream 0x7fabd90048 write (1,4)
[261] write [(1,4) (04 00 00 00 )(....)]
[I]2023-06-19 10:56:58.411122 [p:261] wad_unix_stream_flush_data :595 WAD unix stream stream 0x7fabd90138 write (1,32)
[261] write [(1,32) (00 01 00 00 02 00 00 00 59 90 cf bf 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 )(........Y.......................)]
[V]2023-06-19 10:56:58.411805 [p:260] wad_unix_stream_on_read_data :426 WAD unix stream socket 48 read (0,4080)
[260] read [(0,4) (04 00 00 00 )(....)]
[V]2023-06-19 10:56:58.411845 [p:260] wad_unix_stream_on_read_data :426 WAD unix stream socket 49 read (0,4080)
[260] read [(0,32) (00 01 00 00 02 00 00 00 59 90 cf bf 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 )(........Y.......................)]
[I]2023-06-19 10:56:58.418018 [p:261] wad_tcp_port_put :627 free tcp_port=0x7faa579c08
[I]2023-06-19 10:56:58.418043 [p:261] wad_unix_stream_flush_data :595 WAD unix stream stream 0x7fabd90138 write (1,32)
[261] write [(1,32) (00 00 00 00 02 00 00 00 59 90 cf bf 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 )(........Y.......................)]
[V]2023-06-19 10:56:58.418155 [p:260] wad_unix_stream_on_read_data :426 WAD unix stream socket 49 read (0,4080)
[260] read [(0,32) (00 00 00 00 02 00 00 00 59 90 cf bf 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 )(........Y.......................)]
[I]2023-06-19 10:56:58.728193 [p:263][s:5354102] wad_tcp_port_on_event :1875 start processing tcp event=0x1 events=0x1 fd=54 n_out_block=0 state=2 clos
e/shut=0/0 n_out_block=0

 

 

Christoph Christian
Christoph Christian
btan

Hello,


I recommend you create a FortiCare ticket to us. 
Attach your endpoint XML file and FGT config file to the ticket.
ETAC team should be able to assist you once we get the details.

Regards,
Bon
chrisW4
New Contributor III

I will update my ticket I allready openend a few weeks ago with the information you asked me to send.

To be honest at the moment I don't feel supported very well on ZTNA.

Christoph Christian
Christoph Christian
Labels
Top Kudoed Authors