this post was submitted on 01 Sep 2023
26 points (100.0% liked)

Piracy

22373 readers
8 users here now

Welcome to /c/piracy

No netflix or streaming services landlubbers allowed, this is pirates territory.

founded 5 years ago
MODERATORS
 

Is there a relatively simple way to block network access to a program? Avoiding the command line ideally.

Heroic Launcher has a "run game offline" toggle for games that are installed/added through it, but I am trying to cut out the middle man and install non-steam games directly through Steam.

Steam launch commands? Any built in firewall?

Thanks in advance!

top 6 comments
sorted by: hot top controversial new old
[–] skullgiver@popplesburger.hilciferous.nl 4 points 1 year ago* (last edited 1 year ago)

OpenSnitch maybe? I don't know how well it works with game launchers.

You can completely cut off internet access with network namespaces but I don't know a GUI tool for setting those up.

[–] phx@lemmy.ca 3 points 1 year ago

Haven't tried it on Deck, but iptables can do a per-uid based rule which I've used in the past

I.E. login+run restricted games under a particular login, OR sudo to that user for running but allow X-forwarding+PulseAudio to my current login

[–] panmeek@lemmy.sdf.org 2 points 1 year ago

I don't know if it works as I think it does, but you can try relaunching steam in offline mode

[–] Platform27@lemmy.ml 2 points 1 year ago (1 children)

OpenSnitch is a solid option, but I don’t find it that reliable to install on Arch. Instead I’d suggest looking at Safing’s Portmaster.

[–] uninvitedguest@lemmy.ca 1 points 1 year ago

Appreciate it, thank you!

[–] Euphoma@lemmy.ml 1 points 1 year ago

You could also try installing ufw There's a guide here. There are also a bunch of GUI's made for ufw so you don't have to use the terminal to actually use the firewall. Apparently you will have to reinstall it everytime there is an update (for steam os presumably).

I haven't personally tried this stuff, but I think it might be easiest to make a bash script to run the commands to setup ufw so that you don't have to do it multiple times.

There is a built in firewall in steamos called iptables but its more for blocking access to ports system wide, and its also very painful to use.