add net_raw cap for bridge mode, seems to be not a default for podman on fedora

This commit is contained in:
Lukas Prettenthaler 2022-01-31 11:58:07 +01:00
parent 8579c1fde0
commit c3ceacd36a
No known key found for this signature in database
GPG Key ID: 58E5A82932BCE65D
2 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,7 @@ or create an empty file with the network as name
It is the implementation of the local network bridge [paper](https://zerotier.atlassian.net/wiki/spaces/SD/pages/193134593/Bridge+your+ZeroTier+and+local+network+with+a+RaspberryPi)
docker run --name zerotier-one --device=/dev/net/tun \
--cap-add=NET_ADMIN --cap-add=SYS_ADMIN \
--cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add=SYS_ADMIN \
-v /var/lib/zerotier-one:/var/lib/zerotier-one zyclonite/zerotier:bridge
That will start the zero-one, establish connection and build the bridge once the `zt` interface is up.

View File

@ -22,7 +22,7 @@ spec:
- name: vol
subPath: config
mountPath: /mnt
containers:
- name: zerotier
image: zyclonite/zerotier:bridge
@ -40,13 +40,14 @@ spec:
- name: tun
readOnly: true
mountPath: /dev/net/tun
securityContext:
capabilities:
add:
- NET_ADMIN
- NET_RAW
- SYS_ADMIN
dnsPolicy: "None"
dnsConfig:
nameservers:
@ -60,4 +61,4 @@ spec:
- name: tun
hostPath:
path: /dev/net/tun
type: ''
type: ''