Thetra Posted March 27, 2012 Share Posted March 27, 2012 Hi Guy`s Just a quick question, Have anyone managed to get the USB MODE_Switch to handle the Huawei E160 3G Dongle to work with the Mk4? If So i would really appreciate some help getting mine up and running, I`ve tried and failed miserably :-( Thanks in advance Thetra Quote Link to comment Share on other sites More sharing options...
niggizito Posted March 27, 2012 Share Posted March 27, 2012 Hi Guy`s Just a quick question, Have anyone managed to get the USB MODE_Switch to handle the Huawei E160 3G Dongle to work with the Mk4? If So i would really appreciate some help getting mine up and running, I`ve tried and failed miserably :-( Thanks in advance Thetra Hi Thetra, This is the thread you need: http://forums.hak5.org/index.php?showtopic=25833. Good luck! Nik Quote Link to comment Share on other sites More sharing options...
kevambert Posted March 27, 2012 Share Posted March 27, 2012 Yes I have a e160 set up, where are you stuck Quote Link to comment Share on other sites More sharing options...
Thetra Posted March 27, 2012 Author Share Posted March 27, 2012 Hi Kevambert, Well basicly on every thing, Looks like it is not recognized, I used information from Niggizito above, but no luck, I concluded that i suck at mode_switching since i tried a ZTF MF 656 as well with out any luck, If you would be bothered to share how you managed to set it up i would be eternally grateful, Quote Link to comment Share on other sites More sharing options...
kevambert Posted March 27, 2012 Share Posted March 27, 2012 (edited) My E160 had an device id of 12d1:1003 but after I updated the modem firmware it gave me an id of 12d1:140c, as there was no usb_modeswitch file in /etc/usb_modeswitch.d for 12d1:140c I renamed the 12d1:1003 file to 12d1:140c and edited like so (using winSCP) ######################################################## # Huawei E220, E160, E230, E270, E870 DefaultVendor= 0x12d1 DefaultProduct=0x140c TargetClass=0xff CheckSuccess=20 HuaweiMode=1 Then using the web interface I edited the Mobile Broadband Configuration script under USB to (using my apn of 3internet as im in Ireland) *12d1:140c*) echo "Huawei Modem (3-IRL) detected. Attempting mode switch" uci delete network.wan2 uci set network.wan2=interface uci set network.wan2.ifname=ppp0 uci set network.wan2.proto=3g uci set network.wan2.service=umts uci set network.wan2.device=/dev/ttyUSB0 uci set network.wan2.apn=3internet uci set network.wan2.username= uci set network.wan2.password= uci set network.wan2.defaultroute=1 uci commit network usb_modeswitch -v 12d1 -p 140c -V 12d1 -P 140c -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x12d1 product=0x140c sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop logger "3G: firewall stopped" iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT This works well even with 3G on boot enabled. to get the micro sd working I followed Darren Kitchen's tutorial Enable Mass Storage With Swap Partition however if you use the 3G on boot option the micro sd card doesn't mount so you will have to use the force connection now option after the pineapple boots and the micro sd card mounts. reboot the wifi pineapple iv an leave out the dongle till you Update Fstab then after a couple of secs stick it in,once it shows in resources you can then enable the swap "Quote/ Darren Kitchen" b. Plug in the USB drive and wait a minute for everything to settle. c. SSH into the WiFi Pineapple (typically "ssh root@172.16.42.1") d. Issue "mkswap /dev/sda2" my micro sd card shows up as sda in /dev so my Fstab looks like this config global automount option from_fstab 1 option anon_mount 1 config global autoswap option from_fstab 1 option anon_swap 1 config mount option target /usb option device /dev/sda option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0 config swap option device /dev/sda2 option enabled 1 Edited March 27, 2012 by kevambert Quote Link to comment Share on other sites More sharing options...
Thetra Posted March 28, 2012 Author Share Posted March 28, 2012 Thank You So much kevambert, i will try this as soon as i am in front of my Pineapple, If there is anything i can do to help you, please let me know Gratefully Thank you Thetra Quote Link to comment Share on other sites More sharing options...
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.