osmith has uploaded this change for review.
net: add mgw for osmo-bsc-nat
Start the OsmoBSCNAT's own instance of OsmoMGW. Launch it on a separate
IP, such as the other MGWs, so it's easy to differentiate in wireshark
which traffic relates to which MGW.
Related: https://osmocom.org/projects/osmo-bscnat/wiki/Ladder_diagrams_for_key_procedures
Change-Id: Iaeebb693c81d3aa4b1a46d2543c9872bd49b87c3
---
M net/config_2g3g
A net/templates/osmo-mgw-for-bsc-nat.cfg
M net/templates/run.sh
3 files changed, 21 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/55/27455/1
diff --git a/net/config_2g3g b/net/config_2g3g
index 379f505..6111b24 100644
--- a/net/config_2g3g
+++ b/net/config_2g3g
@@ -96,6 +96,10 @@
MGW4BSC1_PORT="2427"
MGW4BSC1_VTY_IP="127.0.0.11"
+MGW4BSCNAT_IP="127.0.0.14"
+MGW4BSCNAT_PORT="2427"
+MGW4BSCNAT_VTY_IP="127.0.0.14"
+
BSC_COUNT=1
BSC0_IP="${TO_RAN_IP}"
diff --git a/net/templates/osmo-mgw-for-bsc-nat.cfg b/net/templates/osmo-mgw-for-bsc-nat.cfg
new file mode 100644
index 0000000..d0ef957
--- /dev/null
+++ b/net/templates/osmo-mgw-for-bsc-nat.cfg
@@ -0,0 +1,16 @@
+${include(common_template_warning)}
+mgcp
+ domain bscnat
+ bind ip ${MGW4BSCNAT_IP}
+ bind port ${MGW4BSCNAT_PORT}
+ rtp net-range 50004 60000
+ number endpoints 1024
+line vty
+ bind ${MGW4BSCNAT_VTY_IP}
+
+${foreach(LOG_OUTPUT)}
+log ${LOG_OUTPUTn_TYPE}
+${include(common_logging)}
+ logging level rtp info
+ logging level lmgcp info
+${foreach_end}
diff --git a/net/templates/run.sh b/net/templates/run.sh
index 29e5347..3165f53 100755
--- a/net/templates/run.sh
+++ b/net/templates/run.sh
@@ -244,6 +244,7 @@
else
term "$stp4cn" STP4CN
term "$stp4ran" STP4RAN
+ term "$mgw -c osmo-mgw-for-bsc-nat.cfg" MGW4BSCNAT
term "$bscnat" BSCNAT
fi
To view, visit change 27455. To unsubscribe, or for help writing mail filters, visit settings.