Reply To: GPRS/EDGE/UMTS/HSDPA router with Zeroshell

Home Page Forums Network Management ZeroShell GPRS/EDGE/UMTS/HSDPA router with Zeroshell Reply To: GPRS/EDGE/UMTS/HSDPA router with Zeroshell

#46568

ristosu
Member

I’m succesfully using Zeroshell 1.0.b9 with Huawei E169 USB modem. Basically I needed to add the following startup script:
—-
# Startup Script

# Mount usbfs.
mount -t usbfs usbfs /proc/bus/usb

# Run huaweiAktBbo, if necessary.
ENDPOINTS=`grep Driver=none /proc/bus/usb/devices | wc -l`
if [ “$ENDPOINTS” == “1” ]
then
LD_LIBRARY_PATH=/DB/lib /DB/bin/huaweiAktBbo
fi

# Load usbserial module.
modprobe usbserial vendor=0x12d1 product=0x1001

# Start pppd.
route del default
/DB/bin/gprs.ppp

# Set up NAT.
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0.0.0.0/0 -j MASQUERADE
—-
a program, huaweiAktBbo, to activate the tty endpoints in the modem, and a pppd script:
—-
/usr/sbin/pppd /udev/ttyUSB0 460800 -crtscts user ppp noauth noipdefault usepeerdns defaultroute debug connect ‘/usr/local/sbin/chat -v -t 10 “” “AT+CGDCONT=1,”IP”,”internet.saunalahti”” “OK” “ATD*99#” “CONNECT”‘ disconnect ‘/usr/local/sbin/chat -v -t 10 ABORT “NO CARRIER” “” “pp+++ppc” “OK” “ATH” “OK”‘
—-
Risto