You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using a graphical client, please provide the version of the client.
no
Version
latest dev version
Description
The host works very well in tun mode with same install approach. However, with same install method and same config json file, the docker container shows FATAL[0000] start service: initialize inbound/tun[0]: configure tun interface: permission denied.
I can confirm I grant all necessary permission for the container with --privileged, --cap-add NET_ADMIN, --cap-add SYS_MODULE, and --device=/dev/net/tun.
Then install singbox as suggested. Using above config in /etc/sing-box/config.json, inside the container, run sing-box -c /etc/sing-box/config.json run .
You will see, FATAL[0000] start service: initialize inbound/tun[0]: configure tun interface: permission denied
I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
The text was updated successfully, but these errors were encountered:
Operating system
Linux
System version
Debian 12.8
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
no
Version
Description
The host works very well in
tun
mode with same install approach. However, with same install method and same config json file, the docker container showsFATAL[0000] start service: initialize inbound/tun[0]: configure tun interface: permission denied
.I can confirm I grant all necessary permission for the container with
--privileged
,--cap-add NET_ADMIN
,--cap-add SYS_MODULE
, and--device=/dev/net/tun
.Reproduction
Make sure
inbounds
hastun
inside, for example,Then starting a random docker with debian or ubuntu, for example,
Then install
singbox
as suggested. Using above config in/etc/sing-box/config.json
, inside the container, runsing-box -c /etc/sing-box/config.json run
.You will see,
FATAL[0000] start service: initialize inbound/tun[0]: configure tun interface: permission denied
Logs
No response
Supporter
Integrity requirements
The text was updated successfully, but these errors were encountered: