-
Notifications
You must be signed in to change notification settings - Fork 8
Getting started
Your admin or colleague gave you a hostname told you to use mole? Do this:
-
If you don't have it, get a mole binary for your platform from the Releases page.
-
Register with the server.
$ mole register <hostname>
-
Check what tunnel definitions are available. This will require you to log in, which will grant you a ticket. The ticket is valid for requests from the same IP for a configurable time period (a week, by default).
$ mole ls
-
Connect to a tunnel:
$ sudo mole dig <tunnelname>
-
Read through the Configuration Reference.
-
Create a tunnel definition file with an
.ini
extension in your home directory. -
Test the tunnel definition:
$ mole dig -l whateverfile.ini
-
When you're happy, push it to the server:
$ mole push whateverfile.ini
-
Export the existing tunnel config to a local file:
$ mole show -r whatever > whatever.ini
-
Edit the file
whatever.ini
to taste. -
Test the tunnel definition:
$ mole dig -l whateverfile.ini
-
When you're happy, push it to the server:
$ mole push whateverfile.ini