OpenWrt Forum Archive

Topic: 3g modem as wan connection and wifi hotspot issue

The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have

root@OpenWrt:~# cat /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option ifname 'eth0'

config interface 'wln'
        option ifname 'wan'
        option _orig_bridge 'false'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.0.1'
        option netmask '255.255.255.0'

config interface 'wan'
        option proto '3g'
        option device '/dev/ttyUSB4'
        option service 'umts_only'
        option apn 'internet.beeline.tj'
        option username 'beeline'
        option password 'beeline'


root@OpenWrt:~# cat /etc/config/dhcp

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option filterwin2k '0'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option nonegcache '0'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

config dhcp
        option start '100'
        option leasetime '12h'
        option limit '150'
        option interface 'wln'


root@OpenWrt:~# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option macaddr 'c4:6e:1f:5b:eb:32'
        option hwmode '11ng'
        option htmode 'HT20'
        list ht_capab 'SHORT-GI-20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'RX-STBC1'
        list ht_capab 'DSSS_CCK-40'

config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'
        option network 'wln'

my smartphone has got right dhcp adress (192.168.0.237 with 192.168.0.1 gateway), but dont ping any site or ip
a firewall is disabled, because i want to use nodogsplash

Where is trubble?

Privet :-)
In case, you can ping/connect from the router itself, I would guess, the missing MASQUERADE in the firewall is the issue.
BTW: As I have a similar system up and running, depending upon your requirements, coova-chilli is a much more powerful captive portal. Which modem do you use ?

Privet!)
I use tp-link mr-3020 with Alcatel x230s 3g modem. Modem has sd-card, which i use for extroot.

The discussion might have continued from here.