The users device's tunnels are terminated on the Gateways. Here cz-vpnd@x handles the majority of the traffic (NGiNX handles HTTP up), cz-sessiond controls the user's session; cz-gonamed or cz-dnsfwd resolves the resource names in Entitlements.
To list tun device
ip tuntap show
Capture traffic on a tun device, for example tun3
tcpdump -i tun3
View DNS forwarder details
cz-console -i
Shows the current status of the DNS Forwarder. This will include:
This will perform an http GET - the results will confirm NGiNX is operating as expected and will list the URIs in the [ ] for the specified for the user.
* Trying 127.0.0.1..... .....{"uris":[{"uri":"<hostname>:80","name":"<app name>","rule":"allow"},{"uri":"<hostname>:80/<subnet>","name":"<app name>","rule":"block"}],"dn":"CN=<deviceID>,CN=<username>,OU=local"} * Connection #0 to host 127.0.0.1 left intact
The Portal uses theAppGate ZTNA Client under the covers. Since they are buried within an appliance, a set of troubleshooting tools are available to help diagnose any user access issues that might arise.
Webd is the daemon that controls the session usage within the Portal. To get to the webd admin console:
sudo nc -U /var/run/cz-webd/cz-webd-admin.socket
Then enter:
help > prints help
status > prints statistics for webd
sessions list > lists active sessions
session <SHORTID> info > prints info about specific session
session <SHORTID> remove > force removal of session
To see the specific client logs for a user's session.
journalctl -t cz-webclient@<ClientID>
ClientID can be obtained from the session list.
To check on the DNS settings being applied to each user use:
sudo cz-memcachedump
(Because this is a view of a live cache the results can be a bit unpredictable - so you may need to run this a few times to capture the information you are interested in.)
For a general overview of the Portal's Clients and the related memory consumption use: