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

Rikudou_Sage
link
fedilink
English
241Y

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

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

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.

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

Rikudou_Sage
link
fedilink
English
71Y

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 /.

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

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.

@Wbbl@feddit.de
link
fedilink
English
31Y

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

Create a post

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!

  • 1 user online
  • 124 users / day
  • 419 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog