(solved) My linux mint xfce cant acces the internet but can ping 8.8.8.8

so i have this issue with my linux mint pc that i can’t acces the internet when its conectet wia lan with the lan port on my motherboad. i tried using other network kards with no succes. i tried to get help on reddit but the guids didt work for me. im curently using my samsung galaxy a3 2017 as a wifi stick wia usb thetering.
btw im a linux noob

OK, let’s start with the basics. Answer the following questions:

  1. which version of Linux Mint are you using?
  2. what mainboard and CPU is in your PC?
  3. what error messages do you get when trying to connect via the LAN? Post the exact output here.

The next step is to see whether the LAN port actually has an address. To check, open a terminal and copy the following command:

sudo ifconfig -a

Press Enter and provide your password as requested. Then copy the entire output of that command in a code block here.

I’m sure others will chime in too trying to help you out. Me, for now: :zzz:

1 Like

Wild stab, if you can ping specific ip addresses but not go to web pages that sounds like bad DNS.
Can you ping these?
1.1.1.1
9.9.9.9

If so, i would look into your DNS settings.

2 Likes

it says packet filteret for both

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.70  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 2a01:c23:c143:c400:2cb4:12ce:ee87:1798  prefixlen 64  scopeid 0x0<global>
        inet6 2a01:c23:c143:c400:2561:5ed7:fd87:1c7  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::8dbc:c76e:a1b6:28c  prefixlen 64  scopeid 0x20<link>
        ether 74:56:3c:67:7b:c5  txqueuelen 1000  (Ethernet)
        RX packets 5144  bytes 630148 (630.1 KB)
        RX errors 0  dropped 384  overruns 0  frame 0
        TX packets 4705  bytes 1722760 (1.7 MB)
        TX errors 4  dropped 0 overruns 0  carrier 0  collisions 0

parts: ryzen 5 5600 Gigabyte b550 gaming x v2

What type of network set up are ypu running? Reviewing the output of your command tells me that your subnet is not a typical home network. A suggestion of mine will be to boot your live Linux USB and see if it makes any difference. DNS seems to be the culprit especially since your phone supplies Internet.

i don’t know but my mom setup the router to have roles that i have my own role and my sister and everyone else gets the “standard” stuff. the roles exist to punish us if we don’t behave what i do. i don’t know if it also apply to Ethernet as-well. and nope it docent work booting from live and i have the suspicion that 1: i have to give the ip to my mom that she can unlock it or 2: there is a giber issue with both my Linux systems

Can’t remember if Mint has ‘nslookup’ app, but that is my quick and dirty tool

nslookup example.com

Or

dig example.com

Should return an IP address, or in case DNS issue, should return an error.

Of there is an error, you can check the current DNS with

resolvectl status

Which might have a bunch of lines, but main are Global, and over link.

Personally, I like to use nslookup interactive, to temporarily change the provider, as a quick test, before permenqntly editing the /etc/systems/resolve.conf (or whatever Nam)

steps to test connectivity, in brief, and where it has ### this is where I wrote a comment. the ### and the rest of the line, can be ignored

trooperish@HP-255:~$ ###I set the DNS to a bogus address, to test
trooperish@HP-255:~$ ping -c 1 9.9.9.9 ### set to check once for brevity
PING 9.9.9.9 (9.9.9.9) 56(84) bytes of data.
64 bytes from 9.9.9.9: icmp_seq=1 ttl=59 time=1073 ms

--- 9.9.9.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1072.744/1072.744/1072.744/0.000 ms
trooperish@HP-255:~$ nslookup ddg.gg   ### ping was fine, doing a DNS check, which does not return an ip addresss (fails)
Server:		127.0.0.53
Address:	127.0.0.53#53

** server can't find ddg.gg: SERVFAIL

trooperish@HP-255:~$ nslookup  ###this goes into interactive mode
> ddg.gg
Server:		127.0.0.53
Address:	127.0.0.53#53

** server can't find ddg.gg: SERVFAIL
> server 9.9.9.9
Default server: 9.9.9.9
Address: 9.9.9.9#53
> ddg.gg
Server:		9.9.9.9
Address:	9.9.9.9#53

Non-authoritative answer:
Name:	ddg.gg
Address: 40.89.244.232
Name:	ddg.gg
Address: ::
> exit ### manually setting DNS worked, so DNS is an issue this time
trooperish@HP-255:~$ cat /etc/systemd/resolved.conf | grep DNS=
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
#DNS=
#FallbackDNS=
#MulticastDNS=no

### changing the "#DNS=" to remove the #, and to add 9.9.9.9 using 
trooperish@HP-255:~$ sudo nano /etc/systemd/resolved.conf 
then saving (ctrl + o) exiting (ctrl +x)
restart the resolve systemd component, and it might start working, if DNS was an issue:
trooperish@HP-255:~$ resolvectl status | grep DNS
         Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 9.9.9.9
       DNS Servers: 9.9.9.9
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
trooperish@HP-255:~$ nslookup ddg.gg
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	ddg.gg
Address: 40.89.244.232
Name:	ddg.gg
Address: ::

sorry I cant help more, I gotta go to work.
my system did not have a global DNS set, I had it set by interface / connection, which is perfectly valid, but extra steps I dont got time for, sorry
good luck though.

omg im so stupid. so basically i lookt at my ip address and was like “what if my ip is blocked by my router” and then unblocked it and it work. im sorry to waste your time guys. well lesson learn: always check every possibility before ask for help or something.

3 Likes