Jump to content

How can I setup my pineapple IV to my router ?


Recommended Posts

I have got rid of my fon and got myself a alfa 121u and flashed it with the pineapple firmware how can I connect it to my router so I don't have to have it hooked up to the laptop and be able to administrate it from my ipad ?


Link to comment
Share on other sites

Will this script work ?


IP=$(/sbin/ifconfig eth1| grep 'inet addr:'| cut -d: -f2|awk '{print $1}')


echo '1' > /proc/sys/net/ipv4/ip_forward

iptables -I FORWARD -s $MASK/ -j DROP

iptables -A FORWARD -i eth1 -o wlan0 -s $MASK/24 -m state --state NEW -j ACCEPT

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A POSTROUTING -t nat -j MASQUERADE

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.

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