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
This commit is contained in:
Oliver Smith 2022-02-25 11:15:48 +01:00
parent 7f498e2b38
commit 74e1584631
3 changed files with 21 additions and 0 deletions

View File

@ -96,6 +96,10 @@ MGW4BSC1_IP="127.0.0.11"
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}"

View File

@ -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}

View File

@ -244,6 +244,7 @@ if [ "${STP_CN_IP}" = "${STP_RAN_IP}" ]; then
else
term "$stp4cn" STP4CN
term "$stp4ran" STP4RAN
term "$mgw -c osmo-mgw-for-bsc-nat.cfg" MGW4BSCNAT
term "$bscnat" BSCNAT
fi