317
submitted 1 year ago by Samsy@lemmy.ml to c/linuxmemes@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] qjkxbmwvz@startrek.website 61 points 1 year 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.

[-] loganb@lemmy.world 13 points 1 year ago

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

[-] ozymandias117@lemmy.world 13 points 1 year 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 1 year 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 1 year 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 1 year ago* (last edited 1 year 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 7 points 1 year ago* (last edited 1 year 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 1 year 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 6 points 1 year ago

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

this post was submitted on 07 Mar 2024
317 points (100.0% liked)

linuxmemes

24254 readers
1383 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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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.
  • 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, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS