Discovering Radius Traffic on Privilege Cloud Connector Servers/Secure Tunnels for troubleshooting purposes using Microsoft Network Monitor trace.
Objective
In certain scenarios, you may encounter multiple Secure Tunnels/Connector Servers configured within the "Secure Tunnel Configuration," and despite performing all necessary steps to configure Radius, including setting up the Secure Tunnel for Radius and sharing the Secret with Idira Support for import into the Vault database, Radius authentication might still fail. However, there is a lack of documentation explaining how to monitor Radius traffic on Secure Tunnels/Connector Servers. In a recent case, a customer had configured seven Radius servers and Secure Tunnels, all integrated through the Secure Tunnel Configuration Wizard. I aimed to identify which Secure Tunnel was handling the Radius traffic to and from the Radius server, in this instance, OKTA.
Environment
13.0;13.2;13.1;14.0 Privilege Cloud Privilege Cloud Connector;Secure Tunnel Client
Procedure
To download and install Network Monitor to capture network traces, follow these steps:
-
Download Network Monitor on your Connector server where you also have the client "Secure Tunnel" installed.
- Visit https://www.microsoft.com/en-us/download/details.aspx?id=4865 to download the Network Monitor installation package.
- Ensure you download the appropriate version compatible with your operating system.
-
Install Network Monitor:
- Once the download is complete, double-click on the downloaded setup file to begin the installation process.
- Follow the on-screen instructions provided by the installation wizard.
- Choose the installation location and any additional options if prompted.
-
Launch Network Monitor:
- After the installation is complete, launch Network Monitor from the Start menu or desktop shortcut.
-
Start Capturing Network Traffic:
- Once Network Monitor is open, click on the "New Capture" button or navigate to the "Capture" menu and select "Start."
- Choose the appropriate network interface from which you want to capture traffic. This is your NIC card which is being used for the network traffic. Customer would know this.
- Click "Start" to begin capturing network traffic.
- Allow the customer to replicate the issue by attempting to connect to PVWA using Radius authentication. Instruct them to wait for the error to occur and then promptly stop the Netmon trace.
-
Stop Capturing and Save Trace:
- Once you have captured the desired network traffic, click on the "Stop" button or navigate to the "Capture" menu and select "Stop."
- Save the captured trace to a file by selecting "File" > "Save As" from the menu.
- Choose a location to save the trace file and provide a descriptive filename.
-
View and Share Trace Files:
- After saving the trace file, you can reopen it in Network Monitor for further analysis.
- Share the trace file with colleagues or support teams for collaboration or troubleshooting purposes.
Filtering Netmon to observe Radius traffic.
- IPv4.Address == 10.0.0.0 && IPv4.Address == 192.168.1.1 && udp.port == 1812
Replace the above IP addresses and port numbers with the respective addresses and port numbers of your Connector server/Client Secure Tunnel and Radius Server. The provided addresses and port number are for illustrative purposes only.
Example of a successful communication:-
16453 9:49:57 AM 2/29/2024 17.9779799 10.0.0.0 abc.com UDP UDP:SrcPort = 64842, DstPort = 1823, Length = 136 {UDP:357, IPv4:197}
17433 9:49:59 AM 2/29/2024 19.1666838 abc.com 10.0.0.0 UDP UDP:SrcPort = 1823, DstPort = 64842, Length = 258 {UDP:357, IPv4:197}
24113 9:50:10 AM 2/29/2024 30.2735425 10.0.0.0 abc.com UDP UDP:SrcPort = 52204, DstPort = 1823, Length = 246 {UDP:439, IPv4:197}
30317 9:50:20 AM 2/29/2024 40.1961884 abc.com 10.0.0.0 UDP UDP:SrcPort = 1823, DstPort = 52204, Length = 64 {UDP:439, IPv4:197}
You can observe the bidirectional communication occurring on UDP port 1823.
UDP traffic does not typically have "success" or "failure" codes in the same way that TCP does. UDP is a connectionless protocol, meaning it does not establish a connection before sending data. As a result, there are no handshake sequences or error codes like those found in TCP.
While UDP doesn't have explicit success/error codes, monitoring these aspects can help gauge the success of UDP traffic in a network.
-
Destination Unreachable: This error indicates that the destination address is unreachable. It may be due to network congestion, misconfiguration, or the destination being offline.
-
Port Unreachable: If the port specified in the UDP packet is closed or not listening, the receiving system may respond with a "port unreachable" message. This can occur if the application or service expected to receive the UDP packet is not running or properly configured.
-
Time Exceeded: This error occurs when the time-to-live (TTL) value of a packet reaches zero before reaching its destination. It may indicate network routing issues or loops.
-
Source Quench: A source quench message is sent by a router to inform the sender to reduce the rate of packet transmission. This can occur if the network is congested or if the sender is sending packets too quickly.
-
ICMP Redirect: An ICMP redirect message is sent by a router to inform the sender that a better route is available for the specified destination. This can occur if there are routing issues or if a more efficient path is available.
-
Checksum Errors: UDP packets may encounter checksum errors if the data is corrupted during transmission. Checksum errors can indicate issues with network hardware, software, or data corruption.
-
No Response: In some cases, a UDP packet may not receive a response from the destination. This could be due to network congestion, misconfiguration, or the destination not being reachable.
Certain indicators of successful communication:
-
Packet Transmission: Successful UDP traffic means that packets are transmitted between the source and destination without error.
-
Application Responses: If UDP is used for specific applications or protocols (such as DNS, DHCP, SNMP, etc.), receiving expected responses from the application or service can indicate successful communication.
-
No ICMP Errors: ICMP errors, such as "Destination Unreachable" or "Port Unreachable," can indicate issues with UDP traffic. The absence of such errors can be considered a positive sign.
-
Consistent Payloads: If UDP packets contain payloads (such as data or commands), the consistent transmission and reception of these payloads can indicate successful communication.
-
Response Times: Analyzing the response times between UDP packets sent and received can give insights into the efficiency and success of communication. Lower response times generally indicate smoother communication.