this post was submitted on 09 Jul 2024
43 points (84.1% liked)

Linux

48182 readers
1292 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 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] julianh@lemm.ee 10 points 4 months ago (1 children)

Had to install a VPN for work, and if you didn't have a rhel-based distros you had to use a bash install script, and the installed executable had embedded bash and sh scripts. Needless to say I ran that thing in a docker container.

[–] Telorand@reddthat.com 2 points 4 months ago (1 children)

How did you get it to work? I can't seem to figure out how to get my container VPN to connect with the host (and the containerized systemd daemon.service just crashes).

[–] julianh@lemm.ee 2 points 4 months ago* (last edited 4 months ago) (2 children)

For me it had to be run with --privileged and --network=host

For some reason I also had to do "ip r add {remote IP}/{mask} via {the public IP assigned by the vpn}". A friend who knows more about networking found that out for me though, so I'm not entirely sure about it.

[–] Virkkunen@fedia.io 5 points 4 months ago (1 children)

Wouldn't running it on privileged mode cancel out whichever safety measures of running that script in a container?

[–] julianh@lemm.ee 3 points 4 months ago

Somewhat, but it's not a virus. It's contained to it's own file system unless it does something really stupid, and I can easily remove the while whole thing. But the reason i needed it privileged is because it loads the ppp kernel module, so if you know a way to do that without privileged mode, lmk.

[–] Telorand@reddthat.com 2 points 4 months ago

Hmmm, I'll have to dig into that some more. Thanks for the tip!