A lightweight Node.js utility that securely proxies local or internal HTTPS services and exposes them to the internet using TunnelMole.
Perfect for *testing webhooks, **sharing internal dashboards, or *exposing services behind firewalls without complex configuration.
This project provides two ways to run the tunnel:
- A simple fixed configuration (tunnel.js)
- A flexible CLI-based tool (secure-exchange.js)
- 🔁 Reverse proxy using http-proxy
- 🔐 Works with self-signed HTTPS certificates
- 🌍 Public exposure via TunnelMole
- 🧰 CLI support for dynamic configuration
- ⚡ Minimal setup, fast to use
- Node.js v24.12.0+
- TunnelMole CLI installed globally
npm install -g tunnelmole
.
├── tunnel.js
├── secure-exchange.js
├── package.json
└── README.md- git clone https://github.com/RaoulBock/GhostGate.git
- cd secure-exchange-tunnel
- npm install
Use this option when you have one known internal service and want minimal setup.
Edit tunnel.js and update the values below:
const PORT = 1234;
target: https://example.domain.local:1234
host: example.domain.localnode tunne.js🔁 Proxy running on http://localhost:1234 -> https://example.domain.local:1234
https://random-name.tunnelmole.netYou can now access your internal service using the generated TunnelMole URL
This option is more flexible and ideal for scripts, automation, or multiple environments.
chmod +x secure-exchange.jsnode secure-exchange.js \
--target https://internal.service.local:8443 \
--host internal.service.local \
--port 3000- --target HTTPS service you want to expose
- --host Host header (domain only, no port)
- --port Local port the proxy listens on
🚀 Proxy running on http://localhost:3000 -> https://internal.service.local:8443
https://secure-link.tunnelmole.net- ✔ Test Stripe / PayPal webhooks locally
- ✔ Share internal admin dashboards
- ✔ Expose services behind NAT or firewalls
- ✔ Demo local projects publicly
-
- SSL verification is disabled to support self-signed certificates
-
- TunnelMole URLs are public and temporary
-
- Not recommended for production use without additional security
-
- Node.js
-
- http-proxy
-
- TunnelMole
MIT License
If you find this project useful, give it a ⭐ on GitHub and share it with others.