Skip to content

[Bug Report] CubeEgress nginx.conf listen IP not updated when using custom CUBE_SANDBOX_NETWORK_CIDR #832

Description

@Yousri

Summary

CubeEgress nginx.conf listen IP not updated when using custom CUBE_SANDBOX_NETWORK_CIDR

Environment

  • CubeSandbox version / commit: v0.5.0-amd64
  • Host OS and kernel version: ubuntu24.04

Steps to Reproduce

Core issue:

  • After installing with CUBE_SANDBOX_NETWORK_CIDR=10.100.0.0/18, the cube-dev gateway IP becomes 10.100.0.1.
  • However, the nginx.conf inside the CubeEgress container still listens on 192.168.0.1:8080 and 192.168.0.1:8443.
  • The TPROXY rules use --on-ip 10.100.0.1, which no longer matches the Nginx listen address, resulting in a configuration mismatch.

Suggestion:

During installation, install.sh should detect the configured CUBE_SANDBOX_NETWORK_CIDR and render the corresponding gateway IP into the CubeEgress nginx.conf. Alternatively, the gateway IP could be passed as an environment variable, with the container updating nginx.conf via sed (or a similar templating mechanism) during startup. This would ensure that the Nginx listen address always stays in sync with the configured sandbox network CIDR.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions