xathor Posted July 1, 2012 Share Posted July 1, 2012 (edited) I have a Pineapple Mark IV, connected to it via USB is an Alfa wifi adapter. I have taken the Alfa card (wlan1) and connected it to my home wifi router that has an address of 192.168.1.1. I have given wlan1 the ip of 192.168.1.173 with a 255.255.255.0 subnet. On the Pineapple, I connect via Wifi to it. It's ip is 172.16.42.1. Now if I do a ping 192.168.1.1 on the pineapple I get nothing. By default the 'route' looks like so: Destination Gateway Genmask Flags Metric Ref Use Iface default 172.16.42.42 0.0.0.0 UG 0 0 0 br-lan 172.16.42.0 * 255.255.255.0 U 0 0 0 br-lan 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan1 So I do a 'route add default gw 192.168.1.1' and 'route del default gw 172.16.42.42' ... which leaves me with: Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan1 172.16.42.0 * 255.255.255.0 U 0 0 0 br-lan 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan1 Now I can ping out to external IP's by both IP and name on the pineapple. Now, on a client connected to the pineapple. I can reach the web interface but I can't ping the distant router 192.168.1.1. I can, oddly, do a tracert on the client and DNS resolves a hostname. If I do on the client (a computer connected to the pineapple via wifi) 'tracert google.com' I get Tracing route to google.com [74.125.137.100] over a maximum of 30 hops: 1 3 ms 1 ms 1 ms Pineapple.lan [172.16.42.1] 2 * * * // Ctrl-C here I've tried playing with route but I am not that knowledgeable on it. Any help? :) --thanks Edited July 1, 2012 by xathor Quote Link to comment Share on other sites More sharing options...
PineDominator Posted July 1, 2012 Share Posted July 1, 2012 (edited) need to issue the proper iptable commands. I would link you to the wiki but it is down at the moment. EDIT: try playing with this http://cloud.wifipineapple.com/wiki/doku.php?id=guidewan Edited July 1, 2012 by petertfm 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.