Jump to content

Problems with bb.sh and ICS


Bitwise
 Share

Recommended Posts

Hi,

I just received my Bunny and wanted to start to play with it, 

but i'm stuck with the autoconfig for the ICS.

Ran sudo ./bb.sh, did the guided config. everything went ok. 

Afer that i ssh-ed into 172.16.64.1 from 172.16.64.10 and tried pinging out to 8.8.8.8 but didn get any response. 

So i checked my routes and saw that the default gateway was set to 172.16.64.64 instead of my 172.16.64.10.

So removed default gateway with : route del default gw 172.16.64.64

And added a new one: route add default gw 172.16.64.10

Now i tried pinging again and it works, got a response.

 

now if i reboot i have to do the del / add route procedure again to get a connection.

Does anybody know how to resolve this? 

 

 

 

Link to comment
Share on other sites

the ICS ip for the bunny is 172.16.64.64 and then you can ssh into it with 172.16.64.1 and should have a connection.  Ive used the guided setup with the pineapple and tried with the bunny but have never had luck and alternatively switch to using bb.sh with the manual setup.  From your post you seem like you know what your doing with ip address and using the manual configuration for bb.sh should be easy.  when asked for your gateway, use your routers gateway not the bunny or pc.  also if you have ufw on it will cause problems.

Link to comment
Share on other sites

bb.sh never worked for me. Here's as simple script I made to make it work for me

#!/bin/bash
ifconfig $2 172.16.64.64 netmask 255.255.255.0
iptables -X
iptables -F
iptables -A FORWARD -i $1 -o $2 -s 172.16.64.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

Then I just feed it the wan iface and lan iface

sh ./bbshare.sh eth0 eth1

 

  • Upvote 1
Link to comment
Share on other sites

Thanks for the replies..

 

I found a way to make it work.. 

Everytime i want to connect the bunny, i start bb.sh and select [G]uided then press [enter] twice, plugin the bunny and now somehow it gives me the right addresses.. 

 

 

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.

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.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...