Mole

Dev tools

ssh tunneling

SHOW HN2018

Mole

an open source tool to easily create ssh tunnels

davrodpin.github.io

#ssh tunnel#port forwarding#ssh#mole

142points
60comments
#293of 2,155 in 2018
Top 14%of 2018 by points

How HN took it

MixedNo clear lean

3 positive, 11 neutral or asking, 0 mixed, 11 critical, out of 25 comments about the project. Thread score -0.28.

Idea: 2 for, 11 againstExecution: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Easier syntax than ssh -L for creating tunnels

    From 2 comments
    • This is a fantastic tool! I've always had to reference a markdown file with SSH tunnel syntax whenever I wanted to create one. I can see myself using this quite a bit in the…
      Samin100 on HN
    • Very nice. I'd consider pinging the guys of OpenBSD to suggest upstreaming this interesting, user friendly, syntax into SSH itself.
      dest on HN
  • Can select a local port automatically, avoiding port clashes

    From 2 comments
    • It can bind to a local available port without having to specify what it is. Stops port clashes.
      dalore on HN
    • The tool can select the local port on your behalf. It also has aliases to store configuration that user usually use, but that is comparable to the ssh config file.
      davrodpin on HN

Objections

  • Syntax difference from ssh -L is small and does not add much

    From 3 comments
    • Here are the example commands, with the SSH equivalent. There's a small syntax difference, but otherwise I don't think this tool adds much. ``` $ mole -local 127.0.0.1:3306…
      Symbiote on HN
    • Is the syntax difference really that interesting? It's ``` mole -local 127.0.0.1:3306 -remote 127.0.0.1:3306 -server example@172.12.0.100 ``` vs ``` ssh -L 3306:127.0.0.1:3306…
      viraptor on HN
    • I'm not sure if I missed something? Normally I use -L syntax for tunneling (-L local_port:remote_addr:remote_port). Does this tool do more?
      kstenerud on HN
  • Autossh already restarts broken tunnels

    From 2 comments
    • This is cool, but it's not very clear to me what is the benefit of using this over autossh. autossh detects and restarts broken tunnels and uses aliases and tidy config files:…
      jmngomes on HN
    • Uh. I run an autossh program on the host in question. It auto-runs ssh connections when they drop, including tunnels.…
      earthscienceman on HN
  • Ssh config file already stores tunnel aliases

    From 2 comments
    • I don't think you missed anything.. I'm pretty sure I've seen a few similar apps like this on HN, but I don't really understand the draw of them over just using ssh's built in…
      johntash on HN
    • You can do the same thing with the ~/.ssh/config file. Add a configuration block for the host you want to connect to with the ports you want to map. I agree that an official user…
      peterwwillis on HN

Requests

  • Support reverse and dynamic (-R, -D) forwarding

    From 3 comments
    • What about reverse & dynamic ssh tunnels? (ssh -R or ssh -D instead of ssh -L)
      dschep on HN
    • mole also doesn't seem to support DynamicForward for creating SOCKS proxies. Mind you, I'm not sure how it could improve on native ssh for concision: ``` ssh -D *:1080 work ```…
      darrenf on HN
    • there's multiple ways to make tunnels in ssh. -L is one of them (local forwarding). basically, local, remote and dynamic forwarding are possible. there's some interesting uses…
      vectorEQ on HN

Questions

  • What is the benefit over ssh or autossh?

    From 2 comments
    • I'm not sure if I missed something? Normally I use -L syntax for tunneling (-L local_port:remote_addr:remote_port). Does this tool do more?
      kstenerud on HN
    • This is cool, but it's not very clear to me what is the benefit of using this over autossh. autossh detects and restarts broken tunnels and uses aliases and tidy config files:…
      jmngomes on HN

Alternatives named

  • autossh

    From 2 comments
    • This is cool, but it's not very clear to me what is the benefit of using this over autossh. autossh detects and restarts broken tunnels and uses aliases and tidy config files:…
      jmngomes on HN
    • This is maybe a nicer syntax around autossh, which just uses the ssh. And the functionality is ssh's '-R' flag.
      loeg on HN
  • Native ssh -L, -R, -D forwarding

    From 2 comments
    • Here are the example commands, with the SSH equivalent. There's a small syntax difference, but otherwise I don't think this tool adds much. ``` $ mole -local 127.0.0.1:3306…
      Symbiote on HN
    • because it is very difficult to type this instead? ssh -L 21234:localhost:1234 bob@server.com I will confess that I googled it numerous times until one day I realized how silly…
      justaaron on HN
  • spiped

    From 1 comment
    • For many purposes, users may want to consider spiped as a simpler and more reliable alternative.
      cperciva on HN
  • localtunnel

    From 1 comment
    • For web services, an alternative that doesn't require your own server is localtunnel: https://localtunnel.github.io/www/
      peterburkimsher on HN
  • ZeroTier

    From 1 comment
    • If you like this, but think that SSH tunnels are too complicated, I must suggest that you try https://www.zerotier.com/. ZeroTier solves all your networking needs and much more,…
      fiatjaf on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/18236125)