Jump to content

Routing Issue


xathor
 Share

Recommended Posts

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 by xathor
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...