Jochen Posted September 13, 2014 Posted September 13, 2014 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) We're struggling with the setup of the iptables forward rules and routing rules. Can anyone help? Quote
reapz Posted September 16, 2014 Posted September 16, 2014 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? Quote
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.