How to connect to Denodo VDP when only port 443 is allowed
You can translate the document:
Introduction
In many organizations and highly secured environments, network policies often restrict inbound and outbound connectivity to HTTPS traffic on port 443 only. While this approach significantly reduces the attack surface, it also creates challenges for accessing backend services such as relational databases or Denodo Virtual DataPort (VDP), which rely on native TCP-based protocols.
This article describes how to use nginx as a TCP reverse proxy, leveraging the stream module, to securely expose a Denodo VDP service over port 443 without modifying the protocol or client drivers. This can be done by terminating TLS at nginx level and forwarding the raw TCP stream to VDP, Denodo JDBC clients and tools can connect transparently while complying with strict network security constraints.
The following sections walk through the architecture, security considerations, and step-by-step configuration required to enable JDBC connectivity to Denodo located on a server where only HTTPS (port 443) connections are permitted.
This has the following benefits
- Reduced Attack Surface:
- Only one external port is open (443).
- The VDP port (9999) remains fully private and inaccessible from outside.
- nginx stream operates at Layer 4 (TCP) and does not parse or interpret application protocols, minimizing exploitable code paths.
- Strong Encryption
- All external connections are TLS-encrypted.
- TLS can be enforced with:
- Modern cipher suites.
- Certificate validation.
- Mutual TLS (optional).
- Encryption ensures confidentiality and integrity of JDBC traffic in transit.
- No Protocol Translation or Tunneling
- JDBC traffic is not converted to HTTP.
- No REST, servlet, or HTTP encapsulation layer is introduced.
- Eliminates risks associated with Layer 7.
- Preservation of Native Database Security Controls
- Controlled Access and Monitoring
- nginx acts as a single controlled ingress point.
- Access can be restricted using:
- IP allowlists.
- Rate limiting.
- Connection limits.
- TLS termination provides a clear inspection point for monitoring and auditing.
- Compatibility with Enterprise Security Models
- Aligns with:
- Zero Trust principles.
- Least-privilege networking.
- HTTPS-only firewall policies.
- Avoids custom drivers or client-side workarounds that could bypass security controls.
Configuring nginx Reverse Proxy Streaming
Install nginx with Stream Module
On Linux (Debian / Ubuntu)
|
$ sudo apt update $ sudo apt install nginx |
Verify that nginx supports the stream module:
|
$ nginx -V 2>&1 | grep --color=auto stream |
If the stream module is not listed, install it explicitly:
|
$ sudo apt install nginx-mod-stream |
On RHEL / CentOS / Amazon Linux
|
$ sudo yum install nginx |
Most modern distributions include the stream module by default.
Enable the Stream Module (if required)
Edit the main nginx configuration file:
|
$ sudo vi /etc/nginx/nginx.conf |
Ensure the stream module is loaded:
|
$ load_module modules/ngx_stream_module.so; |
(Only required if modules are dynamically loaded.)
Prepare TLS Certificates
You will need a valid TLS certificate for the proxy endpoint.
Options:
- Internal CA (recommended for enterprises).
- Public CA.
- Self-signed (for testing only).
Example file locations:
|
/etc/nginx/certs/db-proxy.crt /etc/nginx/certs/db-proxy.key |
Ensure permissions are restricted:
|
$ chmod 600 /etc/nginx/certs/db-proxy.key |
Configure nginx Stream Proxy
Create or edit a stream configuration file:
|
$ sudo vi /etc/nginx/conf.d/db-stream.conf |
|
stream { upstream VDP_backend { server 127.0.0.1:9999; } server { listen 443 ssl; proxy_pass VDP_backend; ssl_certificate /etc/nginx/certs/db-proxy.crt; ssl_certificate_key /etc/nginx/certs/db-proxy.key; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; proxy_timeout 1h; proxy_connect_timeout 10s; } } |
(Optional) Stream configuration file when TLS is enabled on VDP:
If TLS is already enabled on the VDP side you can configure the streaming without SSL certificate configuration.
|
stream { upstream VDP_backend { server 127.0.0.1:9999; } server { listen 443; proxy_pass VDP_backend;
proxy_timeout 1h; proxy_connect_timeout 10s; } } |
Notes
- VDP remains accessible only locally.
- nginx handles all external access.
- JDBC traffic is forwarded unchanged.
Validate and Start nginx
Test configuration:
|
$ sudo nginx -t |
Reload nginx:
|
$ sudo systemctl reload nginx |
Ensure nginx is running:
|
$ sudo systemctl status nginx |
Connecting to VDP with a JDBC Client (e.g. DBeaver)
In DBeaver or any JDBC client:
- Host:<vdp_host_name>
- Port: 443
- Database: <dbname>
- Username / Password: VDP credentials
- SSL Mode: require or verify-full
- No custom drivers or plugins are required.
The information provided in the Denodo Knowledge Base is intended to assist our users in advanced uses of Denodo. Please note that the results from the application of processes and configurations detailed in these documents may vary depending on your specific environment. Use them at your own discretion.
For an official guide of supported features, please refer to the User Manuals. For questions on critical systems or complex environments we recommend you to contact your Denodo Customer Success Manager.
