Install local:
bash <(curl -fsSL https://raw.githubusercontent.com/davrodpin/mole/master/tools/install.sh)
# or specific version
wget -c https://raw.githubusercontent.com/p1nox/mole/install_spec_version/tools/install.sh -O mole.sh
bash mole.sh v0.5.0 && rm -f mole.sh
# or just v0.5.0 :P
wget -c https://gist.githubusercontent.com/p1nox/7acda215903af368527777fa8aa90b29/raw/16a304b201f4763f5973fb319ad2480b79d5b4fc/mole_050.sh -O mole.sh
bash mole.sh && rm -f mole.sh
Install in docker:
apt-get install -y sudo
wget -c https://raw.githubusercontent.com/davrodpin/mole/master/tools/install.sh -O mole.sh
bash mole.sh && rm -f mole.sh
Simple example:
mole -alias arena_prod -v -insecure \
-local 127.0.0.1:4567 \
-remote 0.0.0.0:4567 \
-server [email protected] \
-key ~/keys_file.pem
mole -start arena_prod
Aws example:
mole -alias redis_customer_prod -v -insecure \
-local :6380 \
-remote dasredis.0001.cache.amazonaws.com:6380 \
-server [email protected] \
-key ~/keys_file.pem
mole -start redis_customer_prod