summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-04-01 17:38:51 +0200
committerHarald Welte <laforge@osmocom.org>2021-04-01 21:27:33 +0200
commit7079ce89cbbcd4476dea941373175c0a87df3e1e (patch)
treea86e2ce4640d561c61e557e2b1989620eb692f1d
parenta4abe20d62ba116cb615315de4793045f4dc8080 (diff)
gbproxy: Update config for IP BSS to use SNS
This reflects the more realistic use cases: IP-SNS is used on the BSS side, where osmo-gbproxy then behaves in SGSN role. Change-Id: I90bd101096979b170c38fa2a80abb80d296c4d2e
-rw-r--r--gbproxy/GBProxy_Tests.ttcn12
-rw-r--r--gbproxy/osmo-gbproxy.cfg10
2 files changed, 13 insertions, 9 deletions
diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index d3c6df6b..dcf72b09 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -134,7 +134,7 @@ modulepar {
{
nsei := 2001,
role_sgsn := false,
- handle_sns := false,
+ handle_sns := true,
nsvc := {
{
provider := {
@@ -143,7 +143,7 @@ modulepar {
local_udp_port := 21010,
local_ip := "127.0.1.1",
remote_udp_port := 23000,
- remote_ip := "127.0.0.1",
+ remote_ip := "127.0.0.2",
data_weight := 1,
signalling_weight := 1
}
@@ -155,7 +155,7 @@ modulepar {
{
nsei := 2002,
role_sgsn := false,
- handle_sns := false,
+ handle_sns := true,
nsvc := {
{
provider := {
@@ -164,7 +164,7 @@ modulepar {
local_udp_port := 21020,
local_ip := "127.0.2.1",
remote_udp_port := 23000,
- remote_ip := "127.0.0.1",
+ remote_ip := "127.0.0.2",
data_weight := 1,
signalling_weight := 1
}
@@ -176,7 +176,7 @@ modulepar {
{
nsei := 2003,
role_sgsn := false,
- handle_sns := false,
+ handle_sns := true,
nsvc := {
{
provider := {
@@ -185,7 +185,7 @@ modulepar {
local_udp_port := 21030,
local_ip := "127.0.3.1",
remote_udp_port := 23000,
- remote_ip := "127.0.0.1",
+ remote_ip := "127.0.0.2",
data_weight := 1,
signalling_weight := 1
}
diff --git a/gbproxy/osmo-gbproxy.cfg b/gbproxy/osmo-gbproxy.cfg
index efd04993..b2ccb3bf 100644
--- a/gbproxy/osmo-gbproxy.cfg
+++ b/gbproxy/osmo-gbproxy.cfg
@@ -24,15 +24,19 @@ sgsn nsei 102
name second
nri add 4
ns
- bind udp local
+ bind udp sgsn-side
listen 127.0.0.1 23000
accept-ipaccess
nse 101
- ip-sns-bind local
+ ip-sns-bind sgsn-side
ip-sns-remote 127.0.0.10 7777
nse 102
- ip-sns-bind local
+ ip-sns-bind sgsn-side
ip-sns-remote 127.0.0.11 8888
+ bind udp bss-side
+ listen 127.0.0.2 23000
+ accept-dynamic-ip-sns
+ ip-sns-default bind bss-side
timer tns-block 3
timer tns-block-retries 3
timer tns-reset 3