From 01bcf26beebfcf856324d676c49405c38e78902e Mon Sep 17 00:00:00 2001 From: herlesupreeth Date: Fri, 15 Oct 2021 16:27:13 +0200 Subject: [PATCH] /dev/net/tun does not work anymore in latest docker version --- docker-compose.yaml | 3 +-- nr-gnb.yaml | 3 +-- nr-ue.yaml | 3 +-- nsa-deploy.yaml | 3 +-- oaienb.yaml | 1 - sa-deploy.yaml | 3 +-- 6 files changed, 5 insertions(+), 11 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 05959dc..aecbaf3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -289,8 +289,7 @@ services: # - "2152:2152/udp" cap_add: - NET_ADMIN - devices: - - "/dev/net/tun" + privileged: true sysctls: - net.ipv4.ip_forward=1 #- net.ipv6.conf.all.disable_ipv6=0 diff --git a/nr-gnb.yaml b/nr-gnb.yaml index 61e4bf7..a18b696 100644 --- a/nr-gnb.yaml +++ b/nr-gnb.yaml @@ -19,8 +19,7 @@ services: - "4997/udp" cap_add: - NET_ADMIN - devices: - - "/dev/net/tun" + privileged: true networks: default: ipv4_address: ${NR_GNB_IP} diff --git a/nr-ue.yaml b/nr-ue.yaml index 487eed8..687c05c 100644 --- a/nr-ue.yaml +++ b/nr-ue.yaml @@ -17,8 +17,7 @@ services: - "4997/udp" cap_add: - NET_ADMIN - devices: - - "/dev/net/tun" + privileged: true networks: default: ipv4_address: ${NR_UE_IP} diff --git a/nsa-deploy.yaml b/nsa-deploy.yaml index 26e1837..1c2b115 100644 --- a/nsa-deploy.yaml +++ b/nsa-deploy.yaml @@ -289,8 +289,7 @@ services: # - "2152:2152/udp" cap_add: - NET_ADMIN - devices: - - "/dev/net/tun" + privileged: true sysctls: - net.ipv4.ip_forward=1 #- net.ipv6.conf.all.disable_ipv6=0 diff --git a/oaienb.yaml b/oaienb.yaml index 3feb9ed..2176b56 100644 --- a/oaienb.yaml +++ b/oaienb.yaml @@ -11,7 +11,6 @@ services: - net.ipv4.ip_forward=1 devices: - "/dev/bus" - - "/dev/net/tun" volumes: - /dev/serial:/dev/serial:ro - /dev/bus/usb:/dev/bus/usb:ro diff --git a/sa-deploy.yaml b/sa-deploy.yaml index 1b16c1a..77d5cb9 100644 --- a/sa-deploy.yaml +++ b/sa-deploy.yaml @@ -161,8 +161,7 @@ services: # - "2152:2152/udp" cap_add: - NET_ADMIN - devices: - - "/dev/net/tun" + privileged: true sysctls: - net.ipv4.ip_forward=1 #- net.ipv6.conf.all.disable_ipv6=0