Dynamic DNS can be useful especially for home users who wanted to host their own websites or other internet services, without having a static IP Addresses.
Also useful if you want to have a test server that is accessible via internet to perform or simulate penetration testing from public access.
These are the items needed to follow this post.
ISP Plan that can serve dynamic public IP Addresses for their clients. Usually a 1Mbps up plan
DynDNS Account
TP-LINK model no.: TL-WR340G or router that have DDNS feature
Web server
To start with, create an account with DynDNS
Once created, login to your account and go to "My Services" and click "Add Hostname".
Put any hostname that you want, in my case i use "pentestlab". Select the domain name from drop-down list, i've chosen "homeip.net". Click the "Use your currently detected IP address ..." then click "Add To Cart".
Don't worry, this is just a free services. Just click "Next"
The details about the domain is listed below. Just click "Activate Services" to instantly enable it.
We will now proceed with the TP-Link router DDNS configuration. Login to your router management console. Go to the Dynamic DNS tab and put your credentials, dyndns domain etc. as shown below, then click "Login". The status should be succeeded.
Now, get the local IP address of those server that you want to access from the internet.
Now back to TP-Link management console. Go to Forwarding tab and select virtual servers. Put the IP address and ports of the server as shown below.
Users accessing http://pentestlab.homeip.net will be forwarded to your server.
Browsing http://pentestlab.homeip.net (this domain is for POC only and will be deactivated afterwards)
Ping to pentestlab.homeip.net
Perform NMAP to pentestlab.homeip.net to start your recon. Then open each services you want to test on. Use your pentest tools (e.g. metasploit, nikto, backtrack3) to practice exploitation through public IP. Comes in handy on practicing forking (socat) on doing reverse shell, if http/https 80/443 is only allowed.
That's all. Hope you like it.