DuckDuckGo search Linux forbid network access to a program.
Would help [Benjamin_Loison/opencode/issues/1](https://codeberg.org/Benjamin_Loison/opencode/issues/1).
DuckDuckGo search *Linux forbid network access to a program*.
[Wikipedia: Firejail (1341131071)](https://en.wikipedia.org/w/index.php?title=Firejail&oldid=1341131071)
> Network Isolation: It can restrict network access for sandboxed applications, enhancing security against network-based attacks.
[netblue30/firejail](https://github.com/netblue30/firejail) has 7.4k stars and last commit was 2 hours ago.
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
```bash
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
```
Trying 127.0.0.1...
^C
real 2m7,733s
user 0m0,008s
sys 0m0,015s
I would like to still have a port open to leverage remote Ollama.
#38:
```bash
time sudo -g no-internet telnet localhost 33927
```
<details>
<summary>Output:</summary>
```
Trying 127.0.0.1...
^C
real 2m7,733s
user 0m0,008s
sys 0m0,015s
```
</details>
I would like to still have a port open to leverage remote Ollama.
does not return anything and does not help, despite paying attention to now use 8080 for both server and client.
```bash
sudo iptables -A OUTPUT -p tcp -d 127.0.0.1 --dport 8080 -m owner --gid-owner no-internet -j ACCEPT
```
does not return anything and does not help, despite paying attention to now use 8080 for both server and client.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I have verified that I have not such an issue in my Debian, Cinnamon and Ubuntu forks.
Would help Benjamin_Loison/opencode/issues/1.
DuckDuckGo search Linux forbid network access to a program.
The Ask Ubuntu answer 423105:
On my Linux Mint 22.3 Cinnamon Framework 13 Virtual Machine Manager Linux Mint (trust) virtual machine:
Output:
Wikipedia: Firejail (1341131071)
netblue30/firejail has 7.4k stars and last commit was 2 hours ago.
DuckDuckGo and Google search
"ip6tables" "apt".So IPv6 seems not present.
Output:
Output:
Output:
Output:
#38:
Output:
I would like to still have a port open to leverage remote Ollama.
While we can reach Docker guest port by forwarding it, the other way around is maybe harder.
https://chat.mistral.ai/chat/80521fec-ed50-4d42-b38f-25cc7979b8a7
Output:
DuckDuckGo search Linux get group id.
does not return anything and does not help, despite paying attention to now use 8080 for both server and client.
Output:
Output:
DuckDuckGo search iptables delete given rule.
https://www.baeldung.com/linux/iptables-delete-rules
Output:
Output:
Output:
Google search iptables delete given rule.
Output:
Output:
Output:
Related to Benjamin_Loison/apptainer/issues/19.