this post was submitted on 24 Nov 2024
20 points (95.5% liked)

Linux

48338 readers
630 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hello,

I had a working wireguard peer on my laptop, which I didn't want anymore, so I decided to uninstall wireguard. All was well until I restarted the laptop and now I can't access the internet anymore.

I think it's because of some config left over from wireguard, but I'm not sure how to fix it.

Running pop os 22.04.

Any advice?

all 25 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 18 hours ago

Hi

Did you remove wireguard the meta package or everything wireguard installed? I don't know Pop but other distros install additional tools and configs like wireguard-dkms.

Also, if possible, after completely purging every wg you could try booting into a previous kernel on your system to see if that changes anything.

[–] [email protected] 1 points 1 day ago (1 children)

Did you try to ping the router IP, 192.168.1.1 and see if it responded?

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago) (1 children)

~~I did, but no response~~

I changed to a different router and can at least ping that now, but still no internet

[–] [email protected] 2 points 1 day ago (1 children)

@anytimesoon With that different router, now try a traceroute 1.1.1.1, if you get a response from the first hop, 192.168.1.1, then something is wrong with the NAT on the router or your cable service or fiber or whatever it is, is not working.

[–] [email protected] 1 points 1 day ago (1 children)

Unlikely to be something wrong with that, tbh. Everything else on that network has internet access. The issue is limited to the laptop

[–] [email protected] 2 points 1 day ago (1 children)

@anytimesoon I'm a bit at a loss then. I do have a Comcast router that is weird in that ARP only works at boot time so if I plug a new device into it, it won't route for that device unless I reboot it.

[–] [email protected] 1 points 1 day ago

No worries. Thanks for your help! I'll post here if/when I find a solution

[–] [email protected] 3 points 1 day ago (1 children)

This is what mine looks like for contrast:
0.0.0.0 50.251.249.54 0.0.0.0 UG 0 0 0 bridge0
50.251.249.48 0.0.0.0 255.255.255.248 U 0 0 0 bridge0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

In my case, 50.251.249.54 is my gateway and .48 my broadcast. I am static routed so no NAT.

[–] [email protected] 4 points 1 day ago (2 children)

Sorry formatting is whack, Friendica does not understand tabs.

[–] [email protected] 1 points 14 hours ago

Looks like you need to use [code] on friendica?

https://wiki.friendi.ca/docs/bbcode#code_blocks

[–] [email protected] 1 points 1 day ago

So that looks similar to what I have. Wonder why it's not working

[–] [email protected] 7 points 1 day ago (1 children)

Give the output of route, maybe there is a left over route.

[–] [email protected] 5 points 1 day ago (1 children)
[–] [email protected] 3 points 1 day ago (1 children)

Yup, didn't read your comment properly, but that will also work.

[–] [email protected] 2 points 1 day ago (2 children)

The output was pretty much the same from this as from netstat -nr

I would share it here, but I can't access the internet from that machine

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago)

~~Take a photo of the output? First few lines are most important, but ideally all would be good.~~

Edit: actually, dont want to crowd the kitchen, good luck!

[–] [email protected] 3 points 1 day ago (1 children)

@anytimesoon @CameronDev It should be as both commands do more or less the same thing, the question is your default route correct and are there any other routes that might be misdirecting your data.

[–] [email protected] 1 points 1 day ago (2 children)

I'm not entirely sure which of the list is the default route is, but absolutely see my WiFi router on the list. Took a picture as recommended by @CameronDev

1000005757

[–] [email protected] 3 points 1 day ago (1 children)

@anytimesoon Assuming 192.168.1.1 is your wifi router, it looks correct. Can you ping that IP?

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

~~Nope. Destination host is unreachable when pinging~~

I changed to a different router and can at least ping that now, but still no internet

[–] [email protected] 11 points 1 day ago (1 children)

sudo traceroute 1.1.1.1

can show you how far your connection request gets (whether it's blocked by your pc, your router, or somewhere on the internet).
You may have to install it first.

sudo find /etc -name *wg*
find ~ -name *wg*

can help find left-over config files.

[–] [email protected] 1 points 1 day ago

All I got was wget, so this is clean

[–] [email protected] 4 points 1 day ago* (last edited 1 day ago) (1 children)

I would look at your interface configuration and your routing, ip addr show, netstat -nr and go from there. Also might check iptables, iptables -L -n and make sure there aren't any iptable rules blocking your access.

[–] [email protected] 1 points 1 day ago

IP tables have no rules, but netstat is showing traces of WG. Two of the interface names are the same as WG config name I used