SISH Deploy

How do I deploy this self-hosted Ngrok alternative on

How do I set those “–” arguments in the Dockerfile? And how I open all ports of the app? I mean how should my fly.toml look like if I want to open all ports?

Thanks in advance!

Hey there!

You can set them in the CMD directive of the Dockerfile.


FROM antoniomika/sish:latest

CMD ["--ssh-address=:22", "--http-address=:80", "--https-address=:443", "--https=true", "--https-certificate-directory=/ssl", "--authentication-keys-directory=/pubkeys", "--private-keys-directory=/keys", "--bind-random-ports=false"]

You will need to expose these ports via the [services] configuration blocks in your fly.toml if you want to access these from the internet.

@jerome Thanks.

But how do I open a range of ports?

You can’t currently open a range of port, you’d have to manually specify each port in the range.

What are you trying to do? If you can access it via the private network, this might save you a lot of headaches. “Opening” ports is only useful for exposing things via the Internet. If you only need access yourself to certain ports (like 22), you can/should use the private network.

@jerome Will there be bandwidth charges if I access ports through private network?

Yes, that bandwidth still ends up going through the Internet even if it’s not Internet-routable.

1 Like

Ok. Thanks.

Ok, I guess this is in flux and I was a bit wrong. We don’t charge for bandwidth via the private network if you don’t have a public IP set on your app.

Ok. How do I create a private network?

You have one already:

Apart from the documentation Greg shared,

  1. Remove public IPs from a Fly app, if they’re not required.
  2. Listen on fly-local-6pn or :: on a port of your choosing (say, 1337 serving http1.1)
  3. Use Fly’s internal DNS to discover private 6pn IPv6 addresses of a particular app in your org by resolving, global.<appname>.internal
  4. Talk http1.1 to one or all of those resolved 6pn IPs on 1337.
  5. Profit?
1 Like