As described in the title, I can connect to my raspberry, via SSH connection, but raspberry has no internet access.
All of this is done through an WiFi connection (Windows PC <--> Router <--> Raspberry). Router has internet access and so, my Windows PC.
WiFi connections are managed by NetworkManager Applet.
It worked for a few days and this morning it simply doesn't.
Thanks in advance.
EDIT 1
I have wlan1 with a dongle configured as client and wlan0 with embedded wifi hardware configure as a hotspot.
Response of:
$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:9e:4f:42 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 78 bytes 29201 (28.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 78 bytes 29201 (28.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.42.0.1 netmask 255.255.255.0 broadcast 10.42.0.255
inet6 fe80::94f2:3dc3:a727:21f1 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:cb:1a:17 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 50 bytes 6584 (6.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.13 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::2e0:4cff:fe21:361f prefixlen 64 scopeid 0x20<link>
ether 00:e0:4c:21:36:1f txqueuelen 1000 (Ethernet)
RX packets 3786 bytes 553823 (540.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2984 bytes 1386025 (1.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Response of:
$ iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11 Mode:Master Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
wlan1 IEEE 802.11 ESSID:"Batman"
Mode:Managed Frequency:2.462 GHz Access Point: 70:54:D2:B0:44:DD
Bit Rate=54 Mb/s Tx-Power=20 dBm
Retry short long limit:2 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=63/70 Signal level=-47 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:93 Invalid misc:114 Missed beacon:0
EDIT 2
To install NM and to disable dhcpcd the following commands were used:
sudo apt update
sudo apt install network-manager network-manager-gnome openvpn \openvpn-systemd-resolved network-manager-openvpn \network-manager-openvpn-gnome
sudo apt purge openresolv dhcpcd5
sudo ln -sf /lib/systemd/resolv.conf /etc/resolv.conf
EDIT 3
$ ping google.com
ping: google.com: Name or service not known
And
$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=52 time=21.9 ms
...
64 bytes from 8.8.8.8: icmp_seq=37 ttl=52 time=31.5 ms
64 bytes from 8.8.8.8: icmp_seq=38 ttl=52 time=21.5 ms
^C
--- 8.8.8.8 ping statistics ---
38 packets transmitted, 35 received, 7.89474% packet loss, time 210ms
rtt min/avg/max/mdev = 20.707/26.294/91.040/15.970 ms