In general, ssh is a powerful tool when it comes to tunneling and (reverse) proxying.
All proxy functionalities offered by dynamic port formwarding with -D
(or the reverse -R
) are limited to SOCKS proxies.
Postman only supports HTTP proxies. One way to solve this is using https://github.com/oyyd/http-proxy-to-socks.
- Installation and example usage:
npm install -g http-proxy-to-socks
ssh -N -D 1080 tunnel-host
hpts -s 127.0.0.1:1080 -p 8080
- Afterwards, configure Postman to use a HTTP(s) proxy in Settings / Proxy / Proxy Server
Insomnia can use SOCKS5 proxies out-of-the-box even though not well documented. Steps to use it:
- Start tunnel - e.g.
ssh -N -D 1080 tunnel-host
- Configure Insomnia in
Preferences / General / HTTP Network Proxy
and addsocks5
as a protocol, i.e. simply putsocks5://localhost:1080
into the HTTP proxy field. That's it!