Issue: Attempting to login to a sensor via its web UI at results with displaying the 502 BAD GATEWAY error message.
Cause: This is often indicative the last update performed to the sensor failed.
Perform the following steps to resolve the issue:
- Use SSH and login to the sensor with the pwnie user account.
sudo suand press Enter, then re-type the password to become superuser.
px-connection-drand press Enter to verify the sensor has connectivity to the update servers.
When using the px-connection-dr command/script the tests performed include checking DNS resolution, checking TCP connectivity to ports 80, 443 and 873 and ensuring SSL Filtering is *not* being performed upon any of the connections. It is therefore required for *all* tests to either reflect SUCCESS and/or VALID. If any of the tests should reflect FAILURE and/or INVALID, then the issue involving connectivity needs to be resolved before continuing.
- Assuming all tests passed, type
rm /opt/pwnix/chef/latest-version-idand press Enter to remove a file indicative of the last update performed.
- Next, type
rm /opt/pwnix/chef/installed-version-idand press Enter to allow the sensor to attempt updates again within 24 hours of the last update. Note this file may not exist.
px-system-updateand allow the sensor to update itself.
Do not interfere with the sensor until it is finished and you are returned to the # prompt. Please know it may take the sensor as long as 45 minutes to update.
- After returned to the # prompt and to be sure the sensor is fully up-to-date, please repeat steps five and six. This second update will likely take much less time, often less than five minutes.
When finished and returned to the # prompt, you should be all set to continue with the use of the sensor.
To validate a sensor is up-to-date, type
cat /etc/motdand press Enter, then review the banner displayed specifically looking at the Pwnix Release. Next, review the History of Pwnix Releases article.
© 2022 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.
Outpost24® and OUTSCAN™ are trademarks of Outpost24® in Sweden and other countries.