From 1772bc022b75be58f61804e0e2dea29fb340dfdc Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 15 Oct 2017 14:47:28 +0000 Subject: [PATCH] osmo-ggsn-master: Enable ipv6 forwarding We want to be able to reach the external PDN from the PDP contexts, and hence need to enable IPV6 forwarding between the tun device and the PDN device(s). The latter are added using "docker network connect" --- osmo-ggsn-master/Makefile | 9 ++++++++- setup.sh | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/osmo-ggsn-master/Makefile b/osmo-ggsn-master/Makefile index 4f1e812a..0142467f 100644 --- a/osmo-ggsn-master/Makefile +++ b/osmo-ggsn-master/Makefile @@ -1,3 +1,10 @@ -RUN_ARGS?=--cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun --sysctl net.ipv6.conf.all.disable_ipv6=0 --rm --network sigtran --ip 172.18.0.201 -v ggsn-vol:/data --stop-signal SIGINT +RUN_ARGS?= \ + --rm \ + --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun \ + --sysctl net.ipv6.conf.all.disable_ipv6=0 \ + --sysctl net.ipv6.conf.all.forwarding=1 \ + --network sigtran --ip 172.18.0.201 \ + -v ggsn-vol:/data \ + --stop-signal SIGINT include ../make/Makefile diff --git a/setup.sh b/setup.sh index 03421ad0..55e36203 100755 --- a/setup.sh +++ b/setup.sh @@ -1,2 +1,3 @@ #!/bin/bash docker network create --internal --subnet 172.18.0.0/16 sigtran +docker network create --internal --subnet 172.20.0.0/24 --ipv6 --subnet fd10:5741:8e20::0/64 pdn