summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-14 11:29:55 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-14 11:29:55 +0100
commit720372e4e8998d2979a423afebdfa742edbea27b (patch)
tree1867670ec8eef890f4369718044475f31f71c155
parent4adca4e8afd0478d5d52736c721ca7f25631c762 (diff)
gtphub VTY test: use only 127.0.0.1.
Add a second example config file for gtphub so that the VTY test can use nonstandard ports.
-rw-r--r--openbsc/doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg25
-rw-r--r--openbsc/osmoappdesc.py2
2 files changed, 26 insertions, 1 deletions
diff --git a/openbsc/doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg b/openbsc/doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg
new file mode 100644
index 000000000..3913d2c3c
--- /dev/null
+++ b/openbsc/doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg
@@ -0,0 +1,25 @@
+!
+! Osmocom gtphub configuration
+!
+! This file is used for VTY tests, referenced by openbsc/osmoappdesc.py
+! For the test, try to use most config commands.
+!
+
+line vty
+ no login
+
+gtphub
+ ! Local addresses to listen on and send from, both on one interface.
+ ! The side towards SGSN uses nonstandard ports.
+ bind-to-sgsns ctrl 127.0.0.1 12123 user 127.0.0.1 12153
+ ! The GGSN side with standard ports.
+ bind-to-ggsns 127.0.0.1
+
+ ! Proxy: unconditionally direct all traffic to...
+ sgsn-proxy 127.0.0.4
+
+ ! Proxy with nonstandard ports or separate IPs:
+ ggsn-proxy ctrl 127.0.0.3 2123 user 127.0.0.5 2152
+
+ ! Add a name server for GGSN resolution
+ grx-dns-add 192.168.0.1
diff --git a/openbsc/osmoappdesc.py b/openbsc/osmoappdesc.py
index c21883be7..d9fe576d7 100644
--- a/openbsc/osmoappdesc.py
+++ b/openbsc/osmoappdesc.py
@@ -36,7 +36,7 @@ app_configs = {
"sgsn": ["doc/examples/osmo-sgsn/osmo-sgsn.cfg"],
"nitb": ["doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg",
"doc/examples/osmo-nitb/nanobts/openbsc.cfg"],
- "gtphub": ["doc/examples/osmo-gtphub/osmo-gtphub.cfg"]
+ "gtphub": ["doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg"]
}