297
submitted 8 months ago by Samsy@lemmy.ml to c/linuxmemes@lemmy.world
top 36 comments
sorted by: hot top controversial new old
[-] qjkxbmwvz@startrek.website 62 points 8 months ago

Not to be that guy...but there are no WireGuard servers or clients, only peers. Some setups "look" like clients, some "look" like servers, but it's peers all the way down.

[-] ozymandias117@lemmy.world 14 points 8 months ago

Do you mean it’s fully bidirectional?

E.g. connecting to the WireGuard “server” my work set up allows them full access to my internal network?

I would have assumed I would need to set some sort of reverse routing in that case

[-] jlh@lemmy.jlh.name 29 points 8 months ago

Nope, routing traffic between your network and the tunnel would involve routes and possibly NAT.

Wireguard is just a special interface on a peer computer that you can send packets to. What each peer decides to do with the packets is in the realm of routing.

[-] solidgrue@lemmy.world 7 points 8 months ago

Not unless your endpoint is configured to act as a gateway (IP forwarding, maybe also with masquerade) and allows other clients to access the IP address ranges you use in your home LAN (AllowedIP).

[-] ozymandias117@lemmy.world 5 points 8 months ago* (last edited 8 months ago)

That was my assumption, but the way it was stated, I wanted to clarify there wasn’t something special about WireGuard in the way people tend to mean peer to peer

[-] solidgrue@lemmy.world 5 points 8 months ago* (last edited 8 months ago)

Its peer-tp-peer in that it can be configured in multiple modes on a peer by peer, interface by interface basis. You can make point to point, hub & spoke, or full mesh topologies. If you configure one of the peers for IP forwarding, it can gateway to external networks. If you configure two peers with IP forwarding and establish some routing you can build site to site topologoes, or add more peers for site to multisite and full mesh site topologies. Add IP masquerade (source NAT or PAT) to any of those topologies and it can provide remote access VPN.

Its very flexible. Most config guides walk you through a basic remote access VPN scenario that lets remote peers access local LAN services at the one end, but not the other, and/or additionally access Internet resources via IP masquerade. The other topologies require more work, but are (edit: not) much more difficult than the remote access use case.

[-] ozymandias117@lemmy.world 4 points 8 months ago

Thanks for the in depth explanation.

When I’m using it from my work laptop to work’s server to access internal sites, it feels very client -> server.

When they said peer to peer, I was worried I was somehow also exposing my personal devices to work’s network

I didn’t realize there were so many other ways to set it up

[-] possiblylinux127@lemmy.zip 5 points 8 months ago

It is the virtual equivalent of connecting 2 devices together via a cable

[-] loganb@lemmy.world 13 points 8 months ago

It's OK I was literally OMW to be that guy.

[-] PP_BOY_@lemmy.world 53 points 8 months ago
[-] superfes@lemmy.world 11 points 8 months ago

It's unexplainable

[-] SatyrSack@lemmy.one 9 points 8 months ago

🚨🚨🚨 NON-NATIVE SPEAKER DETECTED!!! 🚨🚨🚨
😡😡😡 take em down 😡😡😡

[-] johannesvanderwhales@lemmy.world 2 points 8 months ago

I'm not even sure that's a nonnative speaker thing, I've definitely heard native speakers say this.

[-] crispy_kilt@feddit.de 1 points 8 months ago

It works like that in many languages, no "to" necessary. English needs many little words such as "to" and "of" and whatnot to connect things because it lacks cases

[-] PM_ME_VINTAGE_30S@lemmy.sdf.org 3 points 8 months ago* (last edited 8 months ago)

You are probably a boy. You either have a PP, or are storing PP for later use, or both; only you have this sacred knowledge.

Edit: the person to whom I am responding is literally named PP_BOY.

[-] anyhow2503@lemmy.world 30 points 8 months ago

nmcli con import type wireguard file path_to_wireguard_config_file.conf

[-] Voroxpete@sh.itjust.works 7 points 8 months ago

All hail the sacred command line.

[-] snake_case_lover@lemmy.world 17 points 8 months ago

Even Gnome natively supports Wireguard VPN client by default. There is also wireguard tools on apt. wg-quick up /path/to/conf

[-] somenonewho@feddit.de 15 points 8 months ago

As a Linux nerd and Privacy/Open source advocate it's tough to admit. But I can't use DuckDuckGo. I work as a Linux Sysadmin and Google is the only search engine reliably returning good results (especially on more obscure topics). With DuckDuckGo I've often noticed that it will simply "drop" words from you search terms (i.e. if you search "yellow computer chair" it might just show you any kind of yellow chair or something like that) which makes it unusable for precise searches.

[-] Zelaf@sopuli.xyz 11 points 8 months ago

That's so weird, I decided to completely drop Google as my primary a while back because by the end, the only search results I got was literally only spam and SEO spam/adware links on anything I ever searched. DDG didn't have any of this. Could search how to do something on a Foss project running on my server and 80% of the results were spam links and the other weren't even relevant to the search. For me Google took a shit, Bing was slow and DDG was just a good in-between.

[-] bort@sopuli.xyz 9 points 8 months ago* (last edited 8 months ago)

you may want to try out kagi.

google get worse, because they have a strong incentive to deliver ads, and a weaker incentive to deliver good results (see Cory Doctorow). Kagi is a subscription service, so their only incentive is to deliver good results.

on HN there are regularly good discussions on the topic, e.g. https://news.ycombinator.com/item?id=37852133

[-] PainInTheAES@lemmy.world 11 points 8 months ago

As far as the server goes, setting up wg-easy is pretty painless.

[-] possiblylinux127@lemmy.zip 7 points 8 months ago
[-] Ephera@lemmy.ml 11 points 8 months ago

NetworkManager, presumably.

[-] daq@lemmy.sdf.org 7 points 8 months ago

NetworkManager UI for most things to do with network on Linux

[-] MonkderZweite@feddit.ch 1 points 8 months ago

That's connman for me.

[-] penguincapo@lemmy.world 7 points 8 months ago

Istg ddg has some of the worst SEO hells imaginable. Worse than Googles.

[-] churros@lemmy.dbzer0.com 5 points 8 months ago

Kagi Quick Answer

To setup a WireGuard VPN client in Linux using NetworkManager (nm), there are a few steps:

Ensure you have the latest version of NetworkManager installed as older versions may not support WireGuard. According to result [1], NetworkManager version 1.26.2 or higher is required.

Obtain the client configuration file from your VPN provider or server administrator. This file will contain the connection details like the server endpoint IP/URL, listen port, public and private keys, and allowed IP ranges.

Import the client configuration file into NetworkManager. This can be done using the nmcli command line tool or the NetworkManager GUI. For example, using nmcli:

nmcli connection import type wireguard file /path/to/client/config.conf

Activate the WireGuard VPN connection. Using nmcli:

nmcli connection up id wireguard-client

You should now be connected to the VPN. You can verify the connection status and check that traffic is being routed through the VPN by pinging internal resources. The NetworkManager GUI provides an easy way to import and manage VPN connections without using command line commands. Results [2] and [3] provide a mapping of WireGuard client configuration file settings to the NetworkManager GUI advanced editor.

Let me know if you have any other questions!

[-] s0phia@lemmy.world 2 points 8 months ago

Language models are most useful when the search engines think they're smarter than you

[-] Samsy@lemmy.ml 1 points 7 months ago

Late answer: this was the solution for me. Thx.

[-] psy32nd@lemmy.world 2 points 8 months ago* (last edited 8 months ago)

cp wg0.conf /etc/wireguard && wg-quick up wg0

[-] possiblylinux127@lemmy.zip -1 points 8 months ago
[-] SteveTech@programming.dev 12 points 8 months ago

I love the irony in that this is exactly what OP was saying they didn't want.

[-] possiblylinux127@lemmy.zip 2 points 8 months ago

I don't know what you are talking about

[-] SteveTech@programming.dev 5 points 8 months ago* (last edited 8 months ago)

Unless I've forgotten how this meme format works, OP was looking how to setup wireguard using NetworkManager, but DDG kept returning results on setting up a wireguard server. That link is a tutorial on setting up a wireguard server, and then connecting a peer using wg-quick (and not NetworkManager).

[-] possiblylinux127@lemmy.zip 1 points 8 months ago

Yeah I do actually know exactly what you are talking about I'm just being Albert

this post was submitted on 07 Mar 2024
297 points (93.0% liked)

linuxmemes

21255 readers
6 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS