Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 16:12:51 +02:00
How to forbid network access to a program?

While we can reach Docker guest port by forwarding it, the other way around is maybe harder.

Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 16:11:13 +02:00
How to forbid network access to a program?

#38:

time sudo -g no-internet telnet localhost 33927
Output:
Trying 127.0.0.1...
^C

real	2m7,733s
user	0m0,008s
sys	0m0,015s

</de…

Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 16:05:29 +02:00
How to forbid network access to a program?
sudo --help 
Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 16:03:55 +02:00
How to forbid network access to a program?
sudo -g no-internet whoami
benjamin_loison
sudo -g no-internet groups
no-internet adm cdrom sudo dip www-data plugdev lpadmin sambashare docker…
Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 16:00:16 +02:00
How to forbid network access to a program?
sudo -g no-internet 'curl https://example.com'
sudo: curl https://example.com: command not found
time sudo -g no-internet curl https://example.com

<detail…

Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 15:58:29 +02:00
How to forbid network access to a program?

DuckDuckGo and Google search "ip6tables" "apt".

ping6 2600::
ping6: connect: Network is unreachable

So IPv6 seems not present.

Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 15:56:31 +02:00
How to forbid network access to a program?
sudo iptables -A OUTPUT -m owner --gid-owner no-internet -j DROP
sudo iptables6 -A OUTPUT -m owner --gid-owner no-internet -j DROP
sudo: iptables6: command not found
Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 15:55:58 +02:00
How to forbid network access to a program?

Wikipedia: Firejail (1341131071)

Network Isolation: It can restrict network access for sandboxed applications,…

Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 15:54:29 +02:00
How to forbid network access to a program?

The Ask Ubuntu answer 423105:

sudo addgroup no-internet
Output:
info: Selecting GID from range 1000 to…
Benjamin_Loison commented on issue Benjamin_Loison/linux#99 2026-05-08 13:37:30 +02:00
How to forbid network access to a program?

Would help Benjamin_Loison/opencode/issues/1.

DuckDuckGo search Linux forbid network access to a program.

Benjamin_Loison opened issue Benjamin_Loison/linux#99 2026-05-08 13:33:36 +02:00
How to forbid network access to a program?
Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 19:11:21 +02:00
Install app as if it was installed from the Play Store

image.png

does not help.

adb logcat 
Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 19:08:49 +02:00
Install app as if it was installed from the Play Store
pm install -i com.android.vending base.apk config.arm64_v8a.apk config.en.apk config.xhdpi.apk          
Success
Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 18:59:19 +02:00
Install app as if it was installed from the Play Store
adb shell pm set-installer com.boursorama.android.clients com.android.vending
Output:

Exception occurred while executing 'set-installer':
jav…
Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 18:56:03 +02:00
Install app as if it was installed from the Play Store

DuckDuckGo and Google search "Benjamin Loison" "com.android.vending".

https://chat.mistral.ai/chat/70796360-04dc-4cdd-b069-a8e8b439be8f

adb shell whoami
root
Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 18:51:32 +02:00
Install app as if it was installed from the Play Store

DuckDuckGo and Google search ADB install app as if installed from Play Store.

Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 18:38:40 +02:00
Install app as if it was installed from the Play Store

image.png

image.png

Install does not do anything, even after seconds and…

Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 18:32:25 +02:00
Install app as if it was installed from the Play Store

Mistral and ChatGPT do not find any discussion mentioning com.android.vending.

Benjamin_Loison commented on issue Benjamin_Loison/PlayStore#20 2026-05-05 18:31:45 +02:00
Install app as if it was installed from the Play Store

My Linux Mint 22.3 Cinnamon Framework 13 Firefox history does not mention com.android.vending and DuckDuckGo or Google.