4G-with IP but no internet/ping [SOLVED]

Hello,
my setup is a GL-x750v2 with a german SIMcard inside trying to work in Greece.

here some outputs:

root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
        "registration": "registered",
        "plmn_mcc": 202,
        "plmn_mnc": 1,
        "plmn_description": "\u0016\u0001",
        "roaming": true
}
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
{
        "type": "lte",
        "rssi": -63,
        "rsrq": -10,
        "rsrp": -93,
        "snr": 68
}

here the ip a

root@OpenWrt:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
    link/ether 94:83:c4:14:a7:37 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN qlen 1000
    link/ether 94:83:c4:14:a7:36 brd ff:ff:ff:ff:ff:ff
4: wwan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN qlen 1000
    link/[65534]
    inet 10.184.48.80/27 brd 10.184.48.95 scope global wwan0
       valid_lft forever preferred_lft forever
    inet6 fe80::db83:aefb:9788:2899/64 scope link flags 800
       valid_lft forever preferred_lft forever
5: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 94:83:c4:14:a7:38 brd ff:ff:ff:ff:ff:ff
7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 94:83:c4:14:a7:37 brd ff:ff:ff:ff:ff:ff
    inet 192.168.66.1/24 brd 192.168.66.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fd0c:2683:6629::1/60 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::9683:c4ff:fe14:a737/64 scope link
       valid_lft forever preferred_lft forever
15: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 94:83:c4:14:a7:38 brd ff:ff:ff:ff:ff:ff
    inet 192.168.53.206/24 brd 192.168.53.255 scope global wlan1
       valid_lft forever preferred_lft forever
    inet6 fe80::9683:c4ff:fe14:a738/64 scope link
       valid_lft forever preferred_lft forever

I know the wifi should be off, I did try this check here:

root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
        "registration": "registered",
        "plmn_mcc": 202,
        "plmn_mnc": 1,
        "plmn_description": "\u0016\u0001",
        "roaming": true
}
root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 94:83:C4:14:A7:37
          inet addr:192.168.66.1  Bcast:192.168.66.255  Mask:255.255.255.0
          inet6 addr: fd0c:2683:6629::1/60 Scope:Global
          inet6 addr: fe80::9683:c4ff:fe14:a737/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:137805 errors:0 dropped:0 overruns:0 frame:0
          TX packets:231487 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19381879 (18.4 MiB)  TX bytes:276701383 (263.8 MiB)

eth0      Link encap:Ethernet  HWaddr 94:83:C4:14:A7:37
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:137805 errors:0 dropped:0 overruns:0 frame:0
          TX packets:231493 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21311149 (20.3 MiB)  TX bytes:276701157 (263.8 MiB)
          Interrupt:5

eth1      Link encap:Ethernet  HWaddr 94:83:C4:14:A7:36
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2084 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2084 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:172986 (168.9 KiB)  TX bytes:172986 (168.9 KiB)

wireguard Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.33.9  P-t-P:192.168.33.9  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1420  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:131 errors:0 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:19388 (18.9 KiB)

wlan1     Link encap:Ethernet  HWaddr 94:83:C4:14:A7:38
          inet6 addr: fe80::9683:c4ff:fe14:a738/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11354 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1614857 (1.5 MiB)  TX bytes:5583511 (5.3 MiB)

wwan0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          ... outdated ... gets an IP now

root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network unreachable

What can be the problem/reason for this?

4G has to be in wwan-firewall zone,
wifi0 has to be "off" and/or "LAN-firewall zone"

since the uqmi command shows it is registered, i assume the connection is OK ?! and I need to find the problem at the router setting?

Thanks for your help

another hint that might be the cause?!

root@OpenWrt:~# ip route
10.153.26.64/27 dev wwan0 scope link  src 10.153.26.80
89.247.195.205 via 10.153.26.81 dev wwan0
192.168.66.0/24 dev br-lan scope link  src 192.168.66.1

switched back to WIFI as internet connection (wifi connects to a smartphone hotspot)

root@OpenWrt:~# ip route
default via 192.168.53.35 dev wlan1  src 192.168.53.206
192.168.53.0/24 dev wlan1 scope link  src 192.168.53.206
192.168.66.0/24 dev br-lan scope link  src 192.168.66.1

missing default route above thru the 4G interface ?! but this default route should be generated automatically? how will it be triggered or prevented?

here the AT command-outputs:

root@OpenWrt:~# picocom -b 115200 -r -l /dev/ttyUSB3
picocom v3.1

port is        : /dev/ttyUSB3
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : yes
hangup is      : no
nolock is      : yes
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        :
omap is        :
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

!! Settings mismatch !! Type [C-a] [C-v] to see actual port settings
Type [C-a] [C-h] to see available commands
Terminal ready
AT+COPS?
+COPS: 0,0,"COSMOTE 1&1",7

OK
AT+QSPN
+QSPN: "COSMOTE","COSMOTE","1&1",0,"20201"

OK
AT+CGDCONT?
+CGDCONT: 1,"IPV4V6","","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 3,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1

OK
AT+CGACT?
+CGACT: 1,1
+CGACT: 2,0
+CGACT: 3,0

OK
AT+CPIN?
+CPIN: READY

OK
AT+CGREG?
+CGREG: 0,5

OK

default route should be provided by cosmote via wwan0 and some nexthop

you may need a /etc/init.d/network restart or even a reboot

but maybe communication with cosmote is confusing because

  1. CGDCONT has no APN
  2. CGDCONT has IPV4V6

You could try something like (note 'internet' is cosmote APN)

AT+CGDCONT=1,"IPV4","internet","0.0.0.0",0,0,0,0
AT+CGDCONT=2,"IPV4","ims","0.0.0.0",0,0,0,0
AT+CGDCONT=3,"IPV4","sos","0.0.0.0",0,0,0,1

to avoid these ...

Even openwrt and uqmi config may be confused
(where you use pdp-type=ipv4 and apn internet IIRC)

Good luck

Reboot with no Hotspot active helped.

now i get this:

root@OpenWrt:~# ip route
default via 10.142.133.77/30 dev wwan0  src 10.142.133.78
192.168.53.0/24 dev wlan1 scope link  src 192.168.53.206
192.168.66.0/24 dev br-lan scope link  src 192.168.66.1

but there is no ping possible/outgoing.
wwan0 is in the red firewall zone.
what/where could be the problem?

and you know for a fact the ISP isn't blocking ping ?

correct. calling webpages does not work either

here is my firewall rule for the 4G interface

also could you ping the gateway IP from the provider side. in my case it is like this

root@OpenWrtNeohori:~# ip route
default via 10.67.124.49 dev wwan0  **src 10.67.124.50**
10.67.124.48/30 dev wwan0 scope link  src 10.67.124.50
192.168.5.0/24 dev br-lan scope link  src 192.168.5.1
192.168.178.0/24 dev eth1 scope link  src 192.168.178.5
root@OpenWrt:~# ping 10.67.124.50
PING 10.67.124.50 (10.67.124.50): 56 data bytes
64 bytes from 10.67.124.50: seq=0 ttl=64 time=0.275 ms
^C
--- 10.67.124.50 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.275/0.275/0.275 ms
root@OpenWrt:~#

if it replies, then it is a matter of firewall settings.Cosmote replies on those IPs

please check your firewall settings and post your settings here.

works :slight_smile: thanks, the problem was:
I still had wifi at the red.zone firewall additional to the 4g this caused the trouble

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.