aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2019-06-19 13:25:22 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2019-06-19 14:04:46 +0200
commitec06cc5981e1d24fba2474e9dc94efc323d9cbc9 (patch)
tree2716880d44e643f42cb41cd42969fcdb57e7e560
parent3b96cf3bb427f259601af590e77fdf41fb0ba25e (diff)
osmo-nitb-master: Add default config file for osmo-bsc_nat
-rw-r--r--osmo-nitb-master/Dockerfile2
-rw-r--r--osmo-nitb-master/bscs.config22
-rw-r--r--osmo-nitb-master/osmo-bsc-nat.cfg41
3 files changed, 65 insertions, 0 deletions
diff --git a/osmo-nitb-master/Dockerfile b/osmo-nitb-master/Dockerfile
index c7fb008..3e20ec8 100644
--- a/osmo-nitb-master/Dockerfile
+++ b/osmo-nitb-master/Dockerfile
@@ -42,6 +42,8 @@ RUN cd openbsc/openbsc && \
VOLUME /data
COPY openbsc.cfg /data/openbsc.cfg
+COPY osmo-bsc-nat.cfg /data/osmo-bsc-nat.cfg
+COPY bscs.config /data/bscs.config
WORKDIR /data
CMD ["/usr/local/bin/osmo-nitb"]
diff --git a/osmo-nitb-master/bscs.config b/osmo-nitb-master/bscs.config
new file mode 100644
index 0000000..16cfa2b
--- /dev/null
+++ b/osmo-nitb-master/bscs.config
@@ -0,0 +1,22 @@
+nat
+ bsc 0
+ token BSC0
+ location_area_code 1
+ description bsc
+ max-endpoints 32
+ paging forbidden 0
+ osmux on
+ bsc 1
+ token BSC1
+ location_area_code 2
+ description bsc
+ max-endpoints 32
+ paging forbidden 0
+ osmux on
+ bsc 2
+ token BSC2
+ location_area_code 3
+ description bsc
+ max-endpoints 32
+ paging forbidden 0
+ osmux on
diff --git a/osmo-nitb-master/osmo-bsc-nat.cfg b/osmo-nitb-master/osmo-bsc-nat.cfg
new file mode 100644
index 0000000..0179a94
--- /dev/null
+++ b/osmo-nitb-master/osmo-bsc-nat.cfg
@@ -0,0 +1,41 @@
+!
+! OsmoBSCNAT (0.12.0.266-2daa9) configuration saved from vty
+!!
+!
+log file /data/osmo-bsc_nat.log
+ logging filter all 1
+ logging color 0
+ logging print category 1
+ logging timestamp 1
+ logging print extended-timestamp 1
+ logging level force-all debug
+!
+line vty
+ no login
+ bind 0.0.0.0
+!
+mgcp
+ bind ip 0.0.0.0
+ bind port 2427
+ rtp bts-base 4000
+ rtp net-base 16000
+ rtp ip-dscp 0
+ no rtcp-omit
+ sdp audio-payload number 126
+ sdp audio-payload name AMR/8000
+ loop 0
+ number endpoints 32
+ call-agent ip 127.0.0.1
+ rtp transcoder-base 0
+ transcoder-remote-base 4000
+nat
+ msc ip 127.0.0.1
+ msc port 5100
+ token foo
+ timeout auth 2
+ timeout ping 20
+ timeout pong 5
+ ip-dscp 0
+ bscs-config-file bscs.config
+ access-list msceven imsi-allow ^[0-9]*[24680]$
+ access-list mscodd imsi-allow ^[0-9]*[13579]$