abete1234 Posted May 11, 2016 Share Posted May 11, 2016 Hi. I am having some fun with my brand new Pineapple NANO but there's one thing I cannot understand. I create an Open AP SSID for some testing and enable Internet Connection Sharing on my computer (currently working on a Mac), sometimes everything works fine and sometimes it does not. If I connect with my phone to that SSID, I see that sometimes (and I have no control on that) it gets a 192.168.1.x IP address (and everything works) and sometimes it gets a 172.16.42.x IP address (and nothing works). What regulates this IP assignation? Thanks for your help, abete Quote Link to comment Share on other sites More sharing options...
fugu Posted May 11, 2016 Share Posted May 11, 2016 Automatic IP designation is usually done via Dynamic Host Configuration Protocol (DHCP), for computers in general. There might be several things that could be going wrong. One thing I can think of is that you have 2 dhcp servers on you network are trying to dish out info and they are competing. Another possibility is there just happens to be another open wifi network near by that you are sometimes connecting to instead of your pineapple. Quote Link to comment Share on other sites More sharing options...
abete1234 Posted May 11, 2016 Author Share Posted May 11, 2016 Thanks, anyway in both cases (192.168.1.x and 172.16.42.x), I see on the web interface that my phone in the connected clients list, so I think it's connected to the correct network and using the correct DHCP (the Pineapple itself). Quote Link to comment Share on other sites More sharing options...
abete1234 Posted May 11, 2016 Author Share Posted May 11, 2016 Pardon, it's 192.168.2.x, not 192.168.1.x. Quote Link to comment Share on other sites More sharing options...
fugu Posted May 11, 2016 Share Posted May 11, 2016 (edited) if you have access to a computer with nmap: $ sudo nmap -sU -n --script=dhcp-discover -p 67 192.168.2.0/24 $ sudo nmap -sU -n --script=dhcp-discover -p 67 172.16.42.0/24 I think this will display info about any dhcp servers on the 2 networks 192.168.2.0-255 and 172.16.42.0-255Its possible that these 2 network ranges overlap each other Edit: changed to new ip ranges Edited May 11, 2016 by fugu Quote Link to comment Share on other sites More sharing options...
abete1234 Posted May 11, 2016 Author Share Posted May 11, 2016 Thanks but I think it has something to do with this topic: - https://forums.hak5.org/index.php?/topic/30516-wifi-pineapple-mark-v-on-osx/ - https://forums.hak5.org/index.php?/topic/28552-wifi-pineapple-mark-iv-no-internet-connection/ And it's caused by something I am not understanding in Mac OS Internet Connection Sharing management. I'll try on a Linux machine using wp6.sh script. Quote Link to comment Share on other sites More sharing options...
b0N3z Posted May 11, 2016 Share Posted May 11, 2016 https://forums.hak5.org/index.php?/topic/37644-getting-the-pineapple-to-work-with-mac/ that is the setup for a tetra on mac but it works with the nano also. Make sure you have the realtek driver installed and add the last three lines through terminal defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberStart 172.16.42.42 defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberEnd 172.16.42.200 defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkMask 255.255.255.0 I then had to set the DHCP manually under the AX88x72A in the network preferences to 172.16.42.42 and it works great. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.