UPNPC- Port Forwarding | DNS Tunneling

Port forwarding-> is a way of telling your router to allow certain packets coming from internet to a specific computer in home network here is kali machine.

3 Things  required for port forwarding
1. ip address of computer to be allow from outside(Kali ip)
2.which protocol to expect from outside
a) TCP: used by SSH, HTTP, XMPP
b) UDP: VOIP based applications
c) ICMP: Ping utility
3. Which destination to be expect

To check current status for above is

netstat -tulpn
root@kali:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name 
tcp        0      0    *               LISTEN      2382/sshd

0000-> listening all network ips for 22

To add a port forwarding rule via UPnP, follow this procedure: 

1. First we need to install the miniupnpc package:
 pi@raspberrypi ~ $ sudo apt-get install miniupnpc

2. Issue the following command to verify that your router supports UPnP:
pi@raspberrypi ~ $ upnpc -s

If the utility reports that no IGD UPnP device was found on the network, you may have to enable UPnP support on your router first.

3. Now we can try to add a port forward rule for the SSH service on the Pi:

pi@raspberrypi ~ $ upnpc -r 22 tcp

4. To verify Port Fowarding

Othere Links