no network with net_admin Capability
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 625
- Forks
- 103
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 1
Description
I am trying to use this docker image to run n2n vpn, the vpn needs tuntap, so the net_admin with /dev/net/tun device is needed, however openwrt docker witih net_admin can not connect to internet, the eth0 cannot get ip address, fails with static address either.
it seems /sbin/init cannot correctly config network, can anyone tell me how to config the docker image?
version: '3.1'
services:
openwrt:
image: openwrtorg/rootfs:openwrt-21.02
restart: always
container_name: openwrt
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
ports:
- 8082:80
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the supplied Docker Compose configuration, focusing on the openwrtorg/rootfs:openwrt-21.02 image, /sbin/init, and the NET_ADMIN and /dev/net/tun settings. Inspect why eth0 receives no address with either dynamic or static configuration; done means the container retains TUN access while eth0 obtains an address and can reach the internet.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose
- Domain
- devops, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100