Frequently asked questions
How do I expose my service on multiple URLs (for example, website.com
and www.website.com
)?
ssh -R website.com:80:localhost:3000 -R www.website.com:80:localhost:3000 sandhole.com -p 2222
See "Advanced Uses" on how to add custom domains.
How do I connect to a forwarded SSH server?
Use ssh -J sandhole.com:2222 mysshserver.com -p 2222
(replace the ports with Sandhole's SSH port if not using the default 2222
).
If you'd like to avoid typing out the proxy jump command every time, make sure to edit your SSH config file (usually ~/.ssh/config
) and add the following entry (changing the port where appropriate):
Host mysshserver.com
ProxyJump sandhole.com:2222
Port 2222
How do I enable Websockets?
Websockets are always enabled for HTTP services.
How do I disable HTTP/TCP/aliasing?
With the --disable--http
, --disable-tcp
, and --disable-aliasing
CLI flags respectively. Note that you cannot disable all three at once.
How do I prevent multiple services from load-balancing?
With the --load-balancing=deny
or --load-balancing=replace
CLI flag.
How do I force HTTP requests to get redirected to HTTPS?
With the --force-https
CLI flag, or by passing force-https
on the tunneling connection(s):
ssh -R website.com:80:localhost:3000 sandhole.com -p 2222 force-https
How do I allow/block certain IP ranges?
With the --ip-allowlist
and --ip-blocklist
CLI flags respectively, or by passing ip-allowist=...
and/or ip-blocklist=...
on the tunneling connection(s):
ssh -R website.com:80:localhost:3000 sandhole.com -p 2222 ip-allowlist=10.0.0.0/8 ip-blocklist=10.1.0.0/16