this post was submitted on 19 Jul 2023
75 points (98.7% liked)

Selfhosted

39939 readers
441 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

What do you guys use / recommend to set up your own VPN to access your LAN services remotely?

you are viewing a single comment's thread
view the rest of the comments
[–] rikudou@lemmings.world 23 points 1 year ago (3 children)

Security 101: Never blindly run shell scripts from a random comment on the internet.

[–] gravitas_deficiency@sh.itjust.works 9 points 1 year ago (1 children)

It’s also piped to sudo so that’s super cool too

[–] GlitzyArmrest@lemmy.world 4 points 1 year ago (1 children)

I sure hope there isn't a rm -rf floating around in there somewhere.. kind of like a certain past incident with major gaming client.

[–] gabriele97@lemmy.g97.top 1 points 1 year ago (1 children)

I want to know more 😳 do you have something? A link?

[–] rikudou@lemmings.world 7 points 1 year ago (1 children)

In the Steam Linux client, there was this line: rm -rf "$STEAMROOT/"*.

If the variable $STEAMROOT isn't defined (or is an empty string), it basically runs rm -rf "/"*, which means delete all subfolders of /.

[–] gabriele97@lemmy.g97.top 2 points 1 year ago

😱😱😱😱😱😱😱😱😱 I don't know how to express how much this shocked me

[–] Wbbl@feddit.de 3 points 1 year ago

A good tip in itself, but you can also look at the source and feel good or bad about it. I didn't expect so many downvotes

https://github.com/hwdsl2/setup-ipsec-vpn

[–] BlueBockser@programming.dev 0 points 1 year ago

Tbf, a lot of applications and tools provide installation scripts in lieu of more elaborate manual setup. Doesn't make it safer, but if you want to install something, you have to trust the source with shell access at some point anyway.