Jump to content

Connecting the Pineapple to a router


Boba Fett
 Share

Recommended Posts

Hi, I got a problem.

I connect the pineapple to my laptop and configure for example a dnsspoof.

All works fine with my laptop and the pineapple ICS via.

When I disconnect only the network cable from my laptop and connect the pineapple directly to my router I have this:

I can connect from my laptop to the pineapple and get internet connection, but the dns spoof doesnt works-

Any help?

Link to comment
Share on other sites

The issue you are having is to do with routing of internet.

First, make sure that you are plugged into the WAN port. Once done, execute the following over SSH:

iptables -A FORWARD -i eth1 -o wlan0 -s 172.16.42.0 -m state --state NEW -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

Please note that if you want this to happen on boot, you'll have to add it to your rc.local (or edit it through the webinterface).

Best Regards,

Sebkinne

Link to comment
Share on other sites

  • 1 month later...

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...