this post was submitted on 24 Nov 2024
21 points (100.0% liked)

Linux

53618 readers
57 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 7 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
[–] superkret@feddit.org 13 points 2 years 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.

[–] anytimesoon@feddit.uk 2 points 2 years ago

All I got was wget, so this is clean

[–] CameronDev@programming.dev 8 points 2 years ago (1 children)

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

[–] nanook@friendica.eskimo.com 5 points 2 years ago (1 children)
[–] CameronDev@programming.dev 3 points 2 years ago (1 children)

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

[–] anytimesoon@feddit.uk 2 points 2 years 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

[–] nanook@friendica.eskimo.com 3 points 2 years 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.

[–] anytimesoon@feddit.uk 1 points 2 years 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

[–] nanook@friendica.eskimo.com 3 points 2 years ago (1 children)

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

[–] anytimesoon@feddit.uk 1 points 2 years ago* (last edited 2 years 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

[–] CameronDev@programming.dev 2 points 2 years ago* (last edited 2 years 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!

[–] nanook@friendica.eskimo.com 4 points 2 years ago* (last edited 2 years 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.

[–] anytimesoon@feddit.uk 1 points 2 years 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

[–] nanook@friendica.eskimo.com 4 points 2 years 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.

[–] nanook@friendica.eskimo.com 5 points 2 years ago (2 children)

Sorry formatting is whack, Friendica does not understand tabs.

[–] anytimesoon@feddit.uk 1 points 2 years ago

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

[–] CameronDev@programming.dev 1 points 2 years ago

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

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

[–] nanook@friendica.eskimo.com 2 points 2 years ago (1 children)

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

[–] anytimesoon@feddit.uk 2 points 2 years ago* (last edited 2 years 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

[–] nanook@friendica.eskimo.com 3 points 2 years 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.

[–] anytimesoon@feddit.uk 2 points 2 years 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

[–] nanook@friendica.eskimo.com 2 points 2 years 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.

[–] anytimesoon@feddit.uk 1 points 2 years ago

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

[–] bbbhltz@beehaw.org 1 points 2 years 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.