Our VPN gateway's admin page was reachable over HTTP with weak credentials and old firmware. I've restricted access and changed the password, but the available logs only cover a few hours. Would you rebuild the gateway or upgrade it in place, and what else would you check?
Found our pfSense VPN admin page exposed to the internet. Rebuild or upgrade?
Answers
I would build a fresh instance, but treat the old configuration as suspect rather than restoring it blindly. Review administrator accounts, authorized SSH keys, firewall rules, VPN settings, and anything else that could grant access before importing it.
Keep a protected backup of the current configuration and check the supported migration path for the releases involved. A clean install won't help much if an unwanted account or rule comes along for the ride.
Reply to this answer
An in-place upgrade can be reasonable if the investigation doesn't turn up evidence of compromise and you need to minimize disruption. Back up the configuration and take a snapshot if your environment supports it. Check the vendor's upgrade guidance and test the VPN and management access afterward.
That said, an upgrade isn't a forensic clean bill of health. If you can't establish that the system is trustworthy, a fresh build gives you a cleaner starting point.
Reply to this answer
The short log window doesn't prove either a breach or a clean history. Treat this as a potential incident and preserve the logs and configuration you still have before making more changes. Check cloud firewall logs, authentication records, and any centralized logs or backups that might cover more of the exposure period.
Also review the networks reachable through that gateway. Look for unexpected access and scan reachable systems for vulnerabilities, with authorization and a plan for handling anything the scans disrupt.
Reply to this answer
Tell management and the people responsible for the connected environments what you found. Keep it simple: the management page was exposed, access has now been restricted, and the available records aren't enough to say whether anyone got in.
That gives them a chance to prioritize investigation and decide who else needs to be involved. Don't present attempted logins as proof of a compromise, but don't call the gateway clean either.
Reply to this answer
For the replacement, keep the admin interface off the public internet and use HTTPS for management. Restrict access to trusted management sources, use strong credentials, and review who actually needs an account.
Set up log retention and monitoring outside the gateway too. A few hours of local logs makes it hard to investigate when something like this turns up.
6n+canvasfunnel_528:
Good point on the logs. Restricting the page helps now, but it doesn't answer what happened before.
Reply to this answer
Add your answer
Answers are reviewed before publication.
_c68!pluvnari.5:
The configuration backup can contain sensitive information too, so keep it somewhere access is restricted.