Skip to content
Try simtrunk free for 14 days.Start free trial

Connecting a SIM bank behind a strict firewall

A SIM bank links to simtrunk over gRPC, or over a WebSocket through an HTTPS-only firewallA SIM bank links to simtrunk over gRPC, or over a WebSocket through an HTTPS-only firewall
A SIM bank links to simtrunk over gRPC, or over a WebSocket through an HTTPS-only firewallA SIM bank links to simtrunk over gRPC, or over a WebSocket through an HTTPS-only firewall

Your office network only lets web traffic out? The bank can link over HTTPS, still end to end encrypted.

A SIM bank has to reach simtrunk, but it never has to be reached: it always dials out. That already makes NAT, home routers and mobile data easy. Some networks go further and let nothing through but HTTPS to a domain name. Here is how a bank links from there.

Two links

  • gRPC: a direct TLS connection to port 8443. The simplest, where the network lets it out.
  • WebSocket over HTTPS: the link runs inside an ordinary HTTPS connection to a domain name, so it passes web-only networks and works behind Cloudflare.

The command the dashboard shows when you add a bank already says which link to use. You don’t edit anything on the bank.

Still end to end

A proxy that terminates HTTPS, such as Cloudflare or a TLS-inspecting firewall, can read ordinary HTTPS. So inside the WebSocket, the bank and simtrunk run their own TLS 1.3, with the same certificates as the gRPC link. The bank checks that simtrunk’s certificate comes from your organization’s own certificate authority, and simtrunk checks the bank’s. The proxy only sees encrypted records.

Enrolment over HTTPS

Over the WebSocket link, the bank also enrols and renews its certificate over HTTPS. It checks the answer itself: the certificate must come from your organization’s authority and hold the key the bank just made. A proxy can’t give it another identity.

Checklist

  • The bank can open HTTPS connections to the internet.
  • Add the bank in the dashboard and run the command it shows.
  • If the network drops, simserve reconnects by itself within 15 seconds of the network.

Blog

Keep reading