Deploy SafeSquid in Cloud
Cloud deployment places SafeSquid near cloud workloads, remote users, or hybrid egress paths. The main risks are exposed proxy ports, undersized instances, weak storage planning, and missing high availability. Treat cloud deployment as a network security change, not just an instance launch.Avoid backhauling remote traffic
Routing remote and branch traffic back to an on-premises gateway before it reaches the internet adds a round trip to every request, consumes bandwidth twice through the gateway link, and degrades the experience for exactly the users who are least able to report it well. Placing the gateway in the cloud removes that detour:- Remote workers reach the nearest instance rather than head office.
- Branch traffic consolidates at an edge device, such as an SD-WAN appliance, before reaching the gateway.
- Inspected traffic egresses to the internet directly from the cloud.
- Capacity scales with demand instead of being provisioned for peak.
- Cost shifts from capital purchase to consumption.
- No single site becomes the dependency for every user’s internet access.
Use this method when
Use cloud deployment when:- Cloud workloads must egress through SafeSquid.
- Remote sites or users already route through a cloud network.
- The organization needs fast pilot capacity without hardware procurement.
- Security groups, routing, logging, and snapshots are centrally managed.
Validate prerequisites
Confirm:- VPC or virtual network routing is approved.
- Security groups restrict proxy and management ports.
- Instance size matches the sizing plan.
- Persistent disk capacity supports logs and updates.
- DNS, NTP, activation, and update paths are reachable.
- Snapshot and rebuild procedures are documented.
Choose a deployment pattern
- Cloud-IMG or prebuilt image
- cloud-init build
- Existing cloud VM
Use a Cloud-IMG, marketplace, or prebuilt SafeSquid image only when the image source, release, checksum or publisher identity, and update path are approved.Record the image ID, region, launch date, SafeSquid version, disk mapping, and initial security group rules. After first boot, verify service state, listener state, DNS resolution, activation reachability, and log creation.The prebuilt image is published at:Import it through the provider’s custom-image path, then launch an instance from the imported image:
The image ships with the account
administrator and the password safesquid. Change it at first login with passwd, before the instance is reachable from any client network.Secure cloud networking
Before routing clients, enforce:- No public
0.0.0.0/0access to proxy or management ports. - Management access limited to approved admin networks.
- Egress allowed only where needed for activation, updates, DNS, NTP, and business routing.
- Cloud flow logs or equivalent network evidence enabled where required.
- Route tables reviewed by the network owner.
Network topology, identity, and encryption
Network topology, identity, and encryption
Topology. Place SafeSquid in a private subnet with no direct inbound internet path. Give it outbound access through a NAT gateway, and front it with a load balancer when clients must reach it from outside the VPC. The proxy needs to reach the internet; the internet does not need to reach the proxy.Instance identity. Do not embed long-lived cloud credentials on the instance. Use the platform’s workload identity mechanism instead:
Encryption at rest. Enable volume encryption — EBS encryption, Azure Disk Encryption, or GCP persistent-disk encryption. SafeSquid volumes hold access logs that identify users and destinations, so treat them as sensitive data at rest, not as operational scratch.Transport for management. Require TLS 1.2 or higher on the management interface, configured through the SafeSquid SSL settings.Logging. Forward SafeSquid logs to the platform’s logging service — CloudWatch, Azure Monitor, or Cloud Logging — and enable VPC or VNet flow logs for network-level visibility. Alert on proxy downtime and on sustained connection-drop rates.
Load balancing and auto-scaling guidance
Load balancing and auto-scaling guidance
Use load balancers only when the selected traffic model is compatible with proxy semantics, source attribution, health checks, and authentication. Record how clients reach the proxy, how failed nodes are removed, and how logs preserve user and source identity.Auto-scaling is suitable only when configuration, activation context, certificate trust, logging, and policy state can be synchronized before a node receives traffic. Do not scale out stateless instances that cannot enforce the same policy and logging behavior as the active node.Where a load balancer is used, configure the health check against the proxy listener on port
8080 using an HTTP GET to /. A check that only tests TCP reachability will keep sending traffic to an instance whose proxy has stopped answering.Per-platform options are the Network or Application Load Balancer on AWS, Azure Load Balancer or Application Gateway, and the TCP/UDP load balancer on GCP.Missing: instance-type recommendations by connection count, and auto-scaling thresholds, are not stated here. The legacy source gives both, but the instance generations are undated and may be superseded. Size from your own measured load and confirm current SKUs with the provider.Configuration sync expectations
Configuration sync expectations
Production cloud deployments need a repeatable way to keep policy and operational state consistent:
- Use the same activation context where cluster or synchronized behavior requires it.
- Preserve configuration backups outside the instance disk.
- Define when policy is promoted from pilot to production nodes.
- Test restore into a replacement instance before relying on snapshots for DR.
- Confirm certificates, Root CA material, and logging configuration are included or deliberately excluded.
Verify deployment
Check DNS and activation reachability:/var/log/safesquid and /var/lib/safesquid appear as mounted filesystems. If they are folded into the root volume instead, log growth will fill the OS disk and take the service down with it.
Plan availability
For production cloud egress, document:- Availability zone placement.
- Health-check method.
- Failover route or load-balancer behavior.
- Same activation key usage across nodes where synchronization is required.
- Snapshot and restore procedure.
- Log forwarding destination.
Capture deployment evidence
Store:- Cloud account and region.
- Instance identifier, image source, and launch method.
- Security group and route table approvals.
- Service and listener checks.
- Activation key storage reference.
- Snapshot or rebuild plan.
- First pilot access-log entry.
Troubleshoot cloud issues
Next steps
- Access the Interface - verify management access.
- Activate Your License - apply the activation key.
- Enterprise Deployment - roll out client routing safely.

