Vulture Posted April 11, 2012 Share Posted April 11, 2012 if i execute the script nothing happens. (nothing in the logs either) however if i run the following manually. i seem to get a 3g connection however unable to ping any address. 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=live.vodafone.com uci set network.wan2.username= uci set network.wan2.password= uci set network.wan2.defaultroute=1 uci commit network usb_modeswitch -v 12d1 -p 1001 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x12d1 product=0x1001 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 After you ran it manually did you see anything in the logs about a connection? If you ls /dev/ttyUSB* do you get anything in return? Also, please verify that your lsusb is not showing a different value than "12d1:1001" for the modem. I have seen them change product codes occasionally depending on the device being removed and re-inserted. Also, when you ran the 3g.sh script manually it should have at least said searching for modem, then printed the "12d1:1001" string, or perhaps something else was printed? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.