
A Guide to setup and configure Ngrok for Linux and Windows
Ngrok can be used to open a port in our system to
- be able to use metasploit outside the local network (ethically)
- to make a web server accessible outside the network (for example)
- to use vnc server outside the local network
What will we need
- An Account on Ngrok’s official site (I’m will be Creating It)
- Ngrok itself of course 🙂
- A Brain (You MUST have one)
Creating an account on Ngrok’s Site
Go to the link : https://dashboard.ngrok.com/signup
create an account with a valid email (an email will be sent to it)
Verify the email by clicking the link sent to it
log in
Setting up Ngrok
after signing in click Download (for linux or windows or even mac)
Note that we will use the authtoken from ngrok site
Unzip the archive
for Linux
- open a terminal window in the same directory with ngrok
- type in the terminal : chmod +x ngrok
- type in the terminal : ./ngrok authtoken “YOUR TOKEN WITHOUT QOUTES”
for Windows
- double click ngrok.exe
- type in the CMD : ngrok authtoken “YOUR TOKEN WITHOUT QOUTES”
Openning a Port (tunnel) with ngrok
let’s say that i want to open the port 4444 with the TCP protocol on my system
in linux i type in the terminal
./ngrok tcp 4444
in windows i type in the CMD
ngrok tcp 4444
now Ngrok Starts to redirect all the traffic from their server port to the 4444 port on our machine
that was easy right?
please support me with a comment below and stay in touch ^^

One thought on “How to setup Ngrok to use Metasploit outside the local network”