PDA

View Full Version : Network/Internet access? troubleshooting



anonymousb.i.g.986
2021-03-16, 04:16
I have gone through documentation and troubleshooting several times. I'm fairly new to Linux, I know I'm missing something. I need help, thanks for taking the time to view this.

So, wireless keeps dropping frequently. From what I could gather, I reasoned a few possible scenarios:

1) gateway/route issue with overlap of gateway and/or mask
2) virtual host adapter needs configuration - same as above
3) Network Manager issue - because restarting network manager sometimes helps and deleting the connection sometimes help, fix is temporary

I attempted to resolve these issues by deleting or altering gateways. That seems temporary, if I even did it correctly from following documentation. I tried to reinstall NetworkManager but that wasn't happening.

So here is everything, at this point in time, I am obviously connected now:

──(root💀networkext)-[/etc/systemd/network]
└─# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 88:ae:1d:b6:2d:9f 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
device interrupt 20 memory 0xd7400000-d7420000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 2482 bytes 1166187 (1.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2482 bytes 1166187 (1.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.144.0.54 netmask 255.255.255.255 destination 10.144.0.53
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 8063 bytes 7933120 (7.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6618 bytes 479441 (468.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vmnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.125.1 netmask 255.255.255.0 broadcast 172.16.125.255
ether 00:50:56:c0:00:01 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vmnet8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.129.1 netmask 255.255.255.0 broadcast 192.168.129.255
ether 00:50:56:c0:00:08 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 27 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.209 netmask 255.255.255.0 broadcast 192.168.1.255
ether 00:27:10:b9:5f:84 txqueuelen 1000 (Ethernet)
RX packets 10658 bytes 8721008 (8.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6689 bytes 1137669 (1.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 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
*2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 88:ae:1d:b6:2d:9f brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:27:10:b9:5f:84 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.209/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
valid_lft 84037sec preferred_lft 84037sec
4: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
inet 172.16.125.1/24 brd 172.16.125.255 scope global vmnet1
valid_lft forever preferred_lft forever
5: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
inet 192.168.129.1/24 brd 192.168.129.255 scope global vmnet8
valid_lft forever preferred_lft forever
6: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 10.144.0.54 peer 10.144.0.53/32 scope global tun0
valid_lft forever preferred_lft forever

*I connected to ethernet via router after this, lost access and unplugged the ethernet, and was able to connect. Both eth0 and wifi were connected to the same essid at the same time.

┌──(networkext㉿networkext)-[~]
└─$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 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
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 88:ae:1d:b6:2d:9f brd ff:ff:ff:ff:ff:ff
inet 192.168.1.72/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
valid_lft 86376sec preferred_lft 86376sec
inet6 2600:1700:6840:1870:40a9:2ef2:bf61:882d/64 scope global dynamic noprefixroute
valid_lft 3588sec preferred_lft 3588sec
inet6 fe80::e5fd:246b:dffd:d282/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:27:10:b9:5f:84 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.209/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
valid_lft 83721sec preferred_lft 83721sec
4: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
inet 172.16.125.1/24 brd 172.16.125.255 scope global vmnet1
valid_lft forever preferred_lft forever
5: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
inet 192.168.129.1/24 brd 192.168.129.255 scope global vmnet8
valid_lft forever preferred_lft forever
7: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 10.144.1.66 peer 10.144.1.65/32 scope global tun0
valid_lft forever preferred_lft forever

┌──(networkext㉿networkext)-[~]
└─$ ip route
0.0.0.0/1 via 10.144.1.65 dev tun0
default via 192.168.1.254 dev eth0 proto dhcp metric 100
default via 192.168.1.254 dev wlan0 proto dhcp metric 600
10.0.0.0/8 via 192.168.1.254 dev eth0
10.144.0.1 via 10.144.1.65 dev tun0
10.144.1.65 dev tun0 proto kernel scope link src 10.144.1.66
128.0.0.0/1 via 10.144.1.65 dev tun0
172.16.0.0/12 via 192.168.1.254 dev eth0
172.16.125.0/24 dev vmnet1 proto kernel scope link src 172.16.125.1
192.168.0.0/16 via 192.168.1.254 dev eth0
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.72 metric 100
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.209 metric 600
192.168.129.0/24 dev vmnet8 proto kernel scope link src 192.168.129.1
193.56.116.151 via 192.168.1.254 dev eth0

┌──(networkext㉿networkext)-[~]
└─$ dig google.com

; <<>> DiG 9.16.12-Debian <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached


──(networkext㉿networkext)-[~]
└─$ curl ifconfig.me 9 ⨯
curl: (6) Could not resolve host: ifconfig.me

root@kali ~$ cat /etc/resolv.conf
# Generated by expressvpn
search expressvpn
nameserver 10.97.0.1

┌──(root💀networkext)-[/home/networkext]
└─# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 networkext

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


┌──(root💀networkext)-[/home/networkext]
└─# ping -c 4 google.com
PING google.com (64.233.185.101) 56(84) bytes of data.
64 bytes from yb-in-f101.1e100.net (64.233.185.101): icmp_seq=1 ttl=108 time=164 ms
64 bytes from yb-in-f101.1e100.net (64.233.185.101): icmp_seq=2 ttl=108 time=46.7 ms
64 bytes from yb-in-f101.1e100.net (64.233.185.101): icmp_seq=3 ttl=108 time=65.2 ms
64 bytes from yb-in-f101.1e100.net (64.233.185.101): icmp_seq=4 ttl=108 time=54.7 ms

--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 46.730/82.678/164.108/47.468 ms

┌──(root💀networkext)-[/home/networkext]
└─# traceroute www.kali.org
traceroute to www.kali.org (35.185.44.232), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 unassigned.quadranet.com (104.223.91.255) 232.724 ms 232.736 ms 232.723 ms
4 te0-4-1-19.ccr42.atl01.atlas.cogentco.com (38.104.3.137) 241.315 ms 241.314 ms 241.306 ms
5 be3483.ccr22.mia01.atlas.cogentco.com (154.54.28.50) 241.320 ms 241.319 ms 241.282 ms
6 be3401.ccr21.mia03.atlas.cogentco.com (154.54.47.30) 241.276 ms 114.164 ms 114.176 ms
7 tata.mia03.atlas.cogentco.com (154.54.9.46) 114.188 ms 119.831 ms 128.648 ms
8 72.14.215.97 (72.14.215.97) 128.758 ms 128.719 ms 128.594 ms
9 108.170.249.1 (108.170.249.1) 128.631 ms 72.14.233.18 (72.14.233.18) 28.576 ms 108.170.253.1 (108.170.253.1) 141.050 ms
10 108.170.253.2 (108.170.253.2) 141.059 ms 108.170.249.18 (108.170.249.) 141.013 ms 108.170.253.3 (108.170.253.3) 207.135 ms
11 142.250.214.127 (142.250.214.127) 181.262 ms 216.239.54.71 (216.239.571) 181.119 ms 142.250.213.93 (142.250.213.93) 181.146 ms
12 142.250.226.26 (142.250.226.26) 190.877 ms * 142.250.225.22 (142.250.5.22) 193.816 ms
13 216.239.42.63 (216.239.42.63) 79.926 ms 209.85.249.194 (209.85.249.19 79.954 ms 209.85.241.26 (209.85.241.26) 75.664 ms
14 172.253.76.213 (172.253.76.213) 90.118 ms 96.783 ms 172.253.65.19 (1.253.65.19) 96.791 ms
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 232.44.185.35.bc.googleusercontent.com (35.185.44.232) 62.342 ms * 7308 ms

---------------------------------------------
No proxy and VM is set to NAT. I've reinstalled several times also. This is incredibly frustrating, someone please impart your wisdom. I think I also have all firmware installed correctly also, except iwl-debug-yoyo.bin.

thanks