Jump to content

Recommended Posts

Posted

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 ?

Thanks

Posted

Will this script work ?

#!/bin/bash

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

MASK=${IP%.*}.0

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

iptables -I FORWARD -s $MASK/255.255.255.0 -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

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