Skip to content
Snippets Groups Projects
Commit 18ee9b95 authored by Sagar Arora's avatar Sagar Arora :bicyclist_tone1:
Browse files

external-dn container

parent bb671dcb
No related branches found
No related tags found
No related merge requests found
......@@ -177,9 +177,21 @@ services:
networks:
5gcore:
ipv4_address: 192.168.68.5
oai-external-dn:
image: ubuntu:bionic
privileged: true
container_name: oai-external-dn
entrypoint: /bin/bash -c \
"apt update; apt install -y iptables iproute2 iputils-ping;"\
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;"\
"ip route add 12.1.1.0/24 via 192.168.68.5 dev eth0; sleep infinity"
command: ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]
networks:
default:
ipv4_address: 192.168.68.7
networks:
5gcore:
driver: bridge
ipam:
config:
- subnet: 192.168.68.0/24
- subnet: 192.168.68.0/24
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment