hak5darren / wp6

Linux Internet Connection Sharing script for 6th generation WiFi Pineapples
138 stars 68 forks source link

ifconfig -a | grep encap returns nothing #1

Open aphex3k opened 8 years ago

aphex3k commented 8 years ago

I try to connect a pineapple on eth1 with my internet comming in on eth0. I downloaded wp6.sh and tried it a couple of times but always received the following error:

No Gateway available for selected Internet Interface.

I had a closer look at the script and tried to find out what's wrong and I think I nailed it down to this:

ifaces=($(ifconfig -a | grep encap | awk {'print $1'} | grep -v lo))

If I run just ifconfig -a | grep encap it already returns nothing... I tried to exchange encap for UP but that didn't work either... I ended up editing the lines in the script directly to match my setup and it worked...

ldionmarcil commented 8 years ago

I personally changed the first line of the configure function to:

    ifaces=($(ifconfig -a | grep mtu |awk {'print substr($1,1,length($1)-1)'} | grep -v lo))

and the script ran just fine.