stroke Posted June 2, 2015 Share Posted June 2, 2015 I just become my Pineapple. I've installed it, connected it via LAN to Notebook. The Notebook was connected over WLAN to Internet. I'm using Windows. Sharing of WLAN Adapter is enabled. LAN Connection (to Pineapple) configured: 172.16.42.42, Subnet: 255.255.255.0, Default Gateway: none, DNS 8.8.8.8 Connection form Notebook to Pineapple works fine. Connection from Smartphone to Pineapple works fine. But no DNS was resolved. Ping (via Putty) to www.google.com was not working. Ping to 173.194.67.104 (IP of google.com) was working. With Smartphone: when I go to www.google.com -> Site was not resolved. When I type 173.194.67.104 in browser: google.com was showing. Route: Destination Gateway Genmask Flags Metric Ref Use Ifacedefault 172.16.42.42 0.0.0.0 UG 0 0 0 br-lan172.16.42.0 * 255.255.255.0 U 0 0 0 br-lan What do I making wrong? Quote Link to comment Share on other sites More sharing options...
digip Posted June 2, 2015 Share Posted June 2, 2015 Set a DNS server for the pineapple most likely. This question should(and may already be asked and answered) be in the Pineapple section of the forums though, so other Pineapple users can read up on the same issue and find a way to resolve it. I don't own a pineapple, but if like any linux system, you probably have a resolv.conf file in etc(not sure if the pineapple has it's own DNS service) but try and edit it and add a DNS server such as OpenDNS, ie: nameserver 208.67.222.222 nameserver ip.of.main.gateway(willsometimes work too) Quote Link to comment Share on other sites More sharing options...
stroke Posted June 2, 2015 Author Share Posted June 2, 2015 Yes, Pineapple has a resolv.conf file also. I have alreay tried to edit this file. But after edit (and restart service or reboot Pineapple), my changes always are over written. In resolv.conf stand: nameserver 127.0.0.1 I searched the forum, but can't find a post in forum for my problem. A bit more of testing: When I edit the resolv.conf: nameserver 127.0.0.1nameserver 172.16.42.42 and save the file, in Putty I can Ping google.com and it's resolved. But connected Smartphone can't resolve (Smartphone was restartet first). When restarting DNS service on Pineapple, my custom value for resolv.conf was overwritten with the initial value. DNS Resolve was not working. Quote Link to comment Share on other sites More sharing options...
digip Posted June 2, 2015 Share Posted June 2, 2015 Without using DHCP or bridged to another gateway, you will probably have to enter a DNS server manually in the conf file. I wouldn't do it per site but instead add a real DNS server, not googles IP so that you can visit more than just google. This should still probably be in the pineapple section for the version you own though. I have a feeling most people are using some sort of infusion and attack against clients connecting and not using it as a normal AP, although it can act as a normal gateway, use a normal router if you want to just surf through it. ​https://forums.hak5.org/index.php?/topic/28716-pineapple-cant-reach-internet-though-configured-like-wiki/ The post is a bit old, but might help. I'd say look in the sections for the pineapple that have the version you own, and read through posts about connection sharing. The forums search seams broken. I searched for "dns" and it returned nothing, but used google to find that link. https://www.google.com/#q=pineapple+dns+server+site:hak5.org+-spoof Quote Link to comment Share on other sites More sharing options...
stroke Posted June 11, 2015 Author Share Posted June 11, 2015 I solved it this way: cd /etc/config/ vi network To "config interface loopback" added:option dns 172.16.42.42 ESC -> :wq reboot So it works, and DNS can be resolved (and Pineapple can be updated). Quote Link to comment Share on other sites More sharing options...
cooper Posted June 11, 2015 Share Posted June 11, 2015 On the loopback interface...? Would've expected this on the br-lan side of things. Quote Link to comment Share on other sites More sharing options...
digip Posted June 11, 2015 Share Posted June 11, 2015 loop back would normally be 127.0.0.1, no? The loopback is usually only used for testing tcp service(s) and making local servers for the most part. Are you sure the other nic settings aren't just foobar or is this a normal part of the pineapples networking? Quote Link to comment Share on other sites More sharing options...
stroke Posted June 15, 2015 Author Share Posted June 15, 2015 Okay, thanks for your reply. I just try following. Instead of changing the loopback, iI have changed the infervace lan, and added the DNS there. The lan DNS entry was the Google DNS 8.8.8.8, so I changed it to 172.16.42.42. Reboot the pineapple, and it works. Was this the right (better) way? 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.