Jump to content

Recommended Posts

Posted

I do not know if everything here is set perfectly but I do know this configuration works:

*0f3d:68aa*) echo "Sierra Aircard 313u detected. Setting network parameters."
# ttyUSB0=CnS ttyUSB1=DM ttyUSB2=NMEA ttyUSB3=AT
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.apn=broadband
uci set network.wan2.device=/dev/ttyUSB3
uci set network.wan2.defaultroute=1
uci set network.wan2.ppp_redial=persist
uci set network.wan2.peerdns=0
uci set network.wan2.dns=8.8.8.8
uci set network.wan2.keepalive=1
uci set network.wan2.pppd_options=debug
uci set network.wan2.pppd_options=noauth
uci commit network
usb_modeswitch -v 0f3d -p 68aa
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x0f3d product=0x68aa
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

;;

Posted

One note about the Sierra modem: Some 3g/4g cards including this one, need a powered USB hub for consistent service. As Sebkinne has noted elsewhere, the USB port of the Pineapple does not provide enough amperage to support higher current devices. The 313U works for a short time and then the USB port dies until reboot unless I am running this from a powered USB hub and then it stays online till I power down.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...