Jump to content

Routing Issues Pineapple-Raspberry PI


Recommended Posts

Posted

We are trying to direct all packets from the pineapple towards the PI and then send all packets back to the pineapple and forward it to the unprotected hotspot (see image) post-48510-0-14254300-1410603689_thumb.j

We're struggling with the setup of the iptables forward rules and routing rules.

Can anyone help?

Posted
I think this might help:


on pineapple, add these iptables rules


-A FORWARD -i br-lan -o eth0 -j ACCEPT

-A FORWARD -i eth0 -o wlan1 -j ACCEPT


on pi:


route add -net 172.16.42.0 netmask 255.255.255.0 gw 172.16.42.1


That way, all traffic from bridge gets sent over eth0, to pi, and pi uses gateway to send stuff back, which gets sent to wlan1 per definition on the 2nd iptables rules.


Can someone validate that i'm not imagining? :happy:

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.

  • Recently Browsing   0 members

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