nikki81 Posted July 27, 2014 Posted July 27, 2014 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 Quote
nikki81 Posted July 28, 2014 Author Posted July 28, 2014 Do I just need to connect the wan port on my pineapple to my router ? Quote
nikki81 Posted July 29, 2014 Author Posted July 29, 2014 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 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.