Sei sulla pagina 1di 4

5/12/2017 PortForwardingforNewbiesNullByte

WONDERHOWTO GADGET HACKS NEXT REALITY INVISIVERSE DRIVERLESS NULL BYTE

FOLLOW US

HOW TO

Port Forwarding for Newbies


BY DONFN 05/15/2016 11:27 PM

I have came across a lot of members on the forum that didn't have a clear idea of what port forwarding is and what it does. So...Let's get started...

Your router is blocking outside traffic from coming inside the network for security reasons (Kind of, like, a firewall level), unless a PC on the network wants it.

Why It's There


Imagine a celebrity.His bodyguard won't let you in his house for no reason, but, if the celebrity had ordered pizza though and you were the delivery guy , the bodyguard
would be happy to have get you in :). That's what the router's firewall is and that's where port forwarding comes in. Port forward lets you choose a port of the router
that's going to be open the whole time (or for a specified amount of time, if the router's settings allow you to) and outside traffic would be always allowed through that
port.

How It Works
Now, again, imagine an airport. The outside traffic has reached the terminal from that specific port that you opened, but still needs to go to its target -the flight 192.168.1.6
(A computer in the network)-. The airplane has still a LOT of ports (doors) (65.535 to be specific) and it need to go to a certain port of that plane. Now, you have
specified that the traffic from port number X will enter the plane from port Y. The outside traffic that had previously entered the terminal, happened to have entered
through that port (Port X), thus it boards the plane from port Y. See?! Easy! :P (In sort terms, you Forward a port from the router to your PC/Phone/Smart Fridge e.t.c.)

Rules of Port Forwarding


1)The Port X cannot be a higher number from Port Y (CORRECT--> PortX=56 & PortY=58 , WRONG---> PortX=345 & PortY=3).

2)The Port X should be a number close to that of the Port Y (PortX=56, PortY=58).

3) Port X can be the same as Port Y

4) Ports n.80,8080,20,21,23,25 are usualy used by the webserver of your router, so try to avoid using those...

5) NO DUPLICATE ROUTER-SIDE PORTS! ex. Rule1(PortX goes to PortY) Rule2(PortX goes to PortE) but the opposite, Rule1(PortX goes to PortY) Rule2(PortB goes to PortY),
can happen.

Real World Example


Now let's say you have a web server that runs on your computer on port 80. You can access the Server only from devices from inside the network because the router
blocks outside traffic. You port-forward port number 60 on your router to port 80 on you PC. Now you can access your lovely Web Server from (public ip):60!!! :D

Technical part
Now the technical part of port forwarding is quite tricky, because there are millions of routers out there with different configuration page layouts. Thus, sites like
PortForward.com exist () that offer guides for almost any router out there! (WARNING!: You do not need to pay in order to see the guides! When that screen pops-up, click

https://nullbyte.wonderhowto.com/howto/portforwardingfornewbies0171094/ 1/4
5/12/2017 PortForwardingforNewbiesNullByte
the "Close"
WONDERHOWTO GADGETbutton onREALITY
HACKS NEXT the top-right
INVISIVERSE corner)
DRIVERLESS NULL BYTE

P.S. Now remember, each device inside the network has the SAME public IP address but NOT the same local IP address , so, your router doesn't onlyFOLLOW
blockUSoutside traffic
for your security reasons but it also doesn't know to which device the outside traffic is heading.

Thanks for reading


-DONFN

Related

HOW TO HOW TO NEWS HOW TO HOW TO



Remotely Control Computers Over VNC Create an SSH Tunnel Server and Client Port-Able-Pot Protect Your Mac & Linux Computers Share Your Laptop's Wireless Intern
Securely with SSH in Linux from Hacks by Creating an iptables with Ethernet Devices
Firewall

12 Comments

CREED WORLD
12 MONTHS AGO - EDITED 12 MONTHS AGO 2

Nice article.Looking forward for your next post.

REPLY

DONFN
11 MONTHS AGO 3

Thanks :D

REPLY

AFNAN ZAKIR
10 MONTHS AGO 1

hey,
tell me how to port forward for VmWare workstation 9 ??
please post an Artical .

REPLY

HIGHTECH
10 MONTHS AGO 1

Go http://www.virten.net/2013/03/how-to-setup-port-forwarding-in-vmware-workstation-9/

REPLY

AFNAN ZAKIR
10 MONTHS AGO 1

HEy it is not working my ports are still closed ... what to do now ?

REPLY

~JESUS
10 MONTHS AGO 1

Well, what i can say to you, is, that you need to forward the ports on your router, not on your VMWare. Opening on the router, anything you use on the specifical internal IP gonna be
fowarded to the port you wanted to.

REPLY

DESIGNER TM
5 MONTHS AGO 1

That means only to port forward the external router /wingle and connect the vm in bridged mode and thats all???????

REPLY

2
AFNAN ZAKIR
https://nullbyte.wonderhowto.com/howto/portforwardingfornewbies0171094/ 2/4
5/12/2017 PortForwardingforNewbiesNullByte

2
AFNAN ZAKIR
WONDERHOWTO GADGET HACKS NEXT REALITY INVISIVERSE DRIVERLESS NULL BYTE
10 MONTHS AGO

Thanks Bro :* FOLLOW US


REPLY

JAYDEEP BHATT
9 MONTHS AGO 1

First, a great information by DONFN I have couple of questions related to portforward using android phone, I am security enthusiastic from India and I like to do hands on with technical
stuff, if you have any idea on bellow mentioned points, it would be a great help.

a. can I use android phone (using wifi or cable) to port forward


b. can I use USB dongle to portfoward

REPLY

DONFN
9 MONTHS AGO 2

Hey,
Sorry for responding late!

Actually port forwarding can be done through the router's web interface or the "UPNP" protocol... If you are connected to a WiFi network though your android device, fire up "Fing" (can be
found on Google Play Store) and find the router. Then, run a service scan on the router and connect to it via http (or https), the password is usually written on the bottom of the device.
After that, you can pretty much find more info on how you can port forward on google -since the procedure is different on every brand/model...Now, i don't know how port forwarding can
be done though UPNP at a mobile device, I don't know any app that does that...You can google it anyway though...Thanks for asking!!

REPLY

MCNIGHTSTRICKER
8 MONTHS AGO 1

good job and thank you

REPLY

SAEED R.AFSHAR
4 DAYS AGO 1

I love you! :D

REPLY

Share Your Thoughts


YOU
LOGIN TO COMMENT

Click to share your thoughts

HOT LATEST

HOW TO

https://nullbyte.wonderhowto.com/howto/portforwardingfornewbies0171094/ 3/4
5/12/2017 PortForwardingforNewbiesNullByte
Set Up a Headless
WONDERHOWTO Raspberry
GADGET HACKS Pi Hacking
NEXT REALITY INVISIVERSE DRIVERLESS NULL BYTE
Platform Running Kali Linux
FOLLOW US

HOW TO HACK WI-FI

Capturing WPA Passwords by Targeting


Users with a Fluxion Attack

HOW TO

4 Ways to Crack a Facebook Password &


How to Protect Yourself from Them

MAC FOR HACKERS

How to Get Your Mac Ready for Hacking

HOW TO

An Intro to Vim, the Unix Text Editor Every


Hacker Should Be Familiar With

HOW TO HACK WI-FI

Get Anyone's Wi-Fi Password Without


Cracking Using Wifiphisher

HOW TO

Successfully Hack a Website in 2016!

https://nullbyte.wonderhowto.com/howto/portforwardingfornewbies0171094/ 4/4

Potrebbero piacerti anche