huawei_3g_lycamobile
- sharing Internet from Lycamobile (PL) provider using Huawei 3G/UMTS dongle (not maintained anymore).
-
ncm mode (
kmod-usb-net-huawei-cdc-ncm
kernel module).config interface wan option proto ncm option device '/dev/cdc-wdm0'
Tested with Huawei E3131 dongle. ID:
12d1:14fe
(12d1:1506
after modeswitch).lsusb Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
-
No LuCI.
-
No opkg.
-
IPv6 disabled.
-
iptables configured to enable Internet sharing from Lycamobile (PL) provider (TTL mangling).
iptables -t mangle -I POSTROUTING -o wwan0 -j TTL --ttl-inc 1 iptables -t mangle -I FORWARD -i wwan0 -j TTL --ttl-inc 1 iptables -t mangle -I PREROUTING -i wwan0 -j TTL --ttl-inc 1
-
Two subnets:
- 10.0.0.1/24 - ethernet, 12h lease time
- 10.0.1.1/24 - wireless, 1h lease time
-
igmpproxy configured and invoked by hotplug hook.
-
AP configured (not enabled).
-
qmi mode.
config interface wan option proto qmi option device '/dev/cdc-wdm0' option apn 'data.lycamobile.pl' option username lmpl option password plus
-
No LuCI.
-
No opkg.
-
IPv6 disabled.
-
iptables configured to enable Internet sharing from Lycamobile (PL) provider (TTL mangling).
iptables -t mangle -I POSTROUTING -o wwan0 -j TTL --ttl-inc 1 iptables -t mangle -I FORWARD -i wwan0 -j TTL --ttl-inc 1 iptables -t mangle -I PREROUTING -i wwan0 -j TTL --ttl-inc 1
-
Two subnets:
- 10.0.0.1/24 - ethernet, 12h lease time
- 10.0.1.1/24 - wireless, 1h lease time
-
igmpproxy configured and invoked by hotplug hook.
-
AP configured (not enabled).
wireless_to_wired
- WiFi to Ethernet bridge using relayd pseudo bridge.
- AP Subnet - 192.168.1.0/24, gateway 192.168.1.254.
- Client Subnet - 10.0.0.0/24, static address 10.0.0.1.
- No opkg.
- igmpproxy configured and invoked by hotplug hook.
- USB-Ethernet gadget support (Raspberry Pi Zero for example).
See also:
- Routed Client with relayd (Pseudobridge).
- Configuring an OpenWRT Router as a repeater for a FRITZ!Box with working Multicast.
- RASPBERRY PI ZERO – PROGRAMMING OVER USB!.
- OpenWRT ticket #20443 - igmpproxy will not start at boot up
-
Clone this repository.
git clone https://github.com/RoEdAl/a5v11
-
Download LEDE image builder from here and unapck it.
cd a5v11
wget http://downloads.lede-project.org/releases/17.01.1/targets/ramips/rt305x/lede-imagebuilder-17.01.1-ramips-rt305x.Linux-x86_64.tar.xz
tar -xvf lede-imagebuilder-17.01.1-ramips-rt305x.Linux-x86_64.tar.xz
- Run proper
build_…
script.
./build_huawei_3g_lycamobile.sh
- Flash router with newly created image
lede-17.01.1-ramips-rt305x-a5-v11-squashfs-factory.bin
(orlede-17.01.0-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin
) from proper….lede-bin
(e. g.huawei_3g_lycamobile.lede-bin
) subdirectory.