Mole
Dev tools
ssh tunneling
SHOW HN2018
How HN took it
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 HNVery 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 HNThe 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 HNIs 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 HNI'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 HNUh. 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 HNYou 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 HNmole 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 HNthere'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 HNThis 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 HNThis 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 HNbecause 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