aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-09-22 14:36:51 +0200
committerMax <msuraev@sysmocom.de>2017-09-25 08:29:28 +0000
commit271f5b408186e7deba1f84fca926aab7b6447b6b (patch)
tree6167a3abe1288db7524d85d919723cbb34aa749f
parent52136c3ae3aa7f07f2a46d8863ecd7621e83eaaf (diff)
Expand OsmoGGSN manual
* add cross-references * add example of running without root priviledges Change-Id: I1743f370ee2b351d2847f2e29e0f59f35cd401f4
-rw-r--r--OsmoGGSN/chapters/configuration.adoc57
-rw-r--r--common/chapters/bibliography.adoc6
2 files changed, 55 insertions, 8 deletions
diff --git a/OsmoGGSN/chapters/configuration.adoc b/OsmoGGSN/chapters/configuration.adoc
index e37b709..9e07fb6 100644
--- a/OsmoGGSN/chapters/configuration.adoc
+++ b/OsmoGGSN/chapters/configuration.adoc
@@ -1,7 +1,7 @@
== Configuring OsmoGGSN
All configuration of OsmoGGSN is performed using the VTY. For more
-general information on the VTY interface, see FIXME.
+general information on the VTY interface, see <<vty>>.
=== Configuring a virtual GGSN instance
@@ -49,7 +49,7 @@ OsmoGGSN(config-ggsn)# <4>
configure the properties of this GGSN instance.
NOTE:: After creating a new GGSN instance, it is in `shutdown` mode. See
-FIXME to take it out of shutdown, but make sure to configure it fully
+<<unshutdown_apn>> to take it out of shutdown, but make sure to configure it fully
before taking it out of shutdown.
==== Configuring a GGSN instance
@@ -66,7 +66,7 @@ OsmoGGSN(config-ggsn)# gtp bind-ip 127.0.0.6 <2>
There are some further configuration statements that can be used at the
GGSN node, some examples are given below. For a full list, see the
-OpenGGSN VTY reference manual (FIXME).
+_OsmoGGSN VTY reference manual_ <<vty-ref-osmoggsn>>.
----
OsmoGGSN(config-ggsn)# default-apn foobar <1>
@@ -152,7 +152,7 @@ OsmoGGSN(config-ggsn-apn)# <5>
<5> Your prompt is now in the `ggsn` config node, where you can
configure the properties of this GGSN instance.
-NOTE:: The newly-create APN is created in `shutdown` mode. See FIXME to take it
+NOTE:: The newly-create APN is created in `shutdown` mode. See <<unshutdown_apn>> to take it
out of shutdown.
@@ -178,7 +178,7 @@ OsmoGGSN(config-ggsn-apn)# ip ifconfig 176.16.222.0/24 <6>
NOTE:: If you use the optional `ip ifconfig` command to set the network
device address/mask, OsmoGGSN must run with root or `CAP_NET_ADMIN`
support. It might be better to configure related tun devices at system
-startup and run OsmoGGSN as non-privileged user. See FIXME for more
+startup and run OsmoGGSN as non-privileged user. See <<ggsn_no_root>> for more
details.
@@ -198,7 +198,7 @@ OsmoGGSN(config-ggsn)# no apn internet <4>
<3> Enter the config node of the GGSN instance `ggsn0`
<4> Delete the APN `internet`
-
+[[unshutdown_apn]]
==== Taking an APN out of shutdown
In order to bring a deactived APN in `shutdown` state into active
@@ -241,3 +241,48 @@ OsmoGGSN(config-ggsn-apn)# shutdown <5>
<4> Enter the config ndoe of the APN `internet`
<5> Shut down the APN
+[[ggsn_no_root]]
+=== Configuring for running without root priveleges
+
+It's possible to run OsmoGGSN without root privileges if the tun devices are already configured.
+
+.Example: device config via systemd-networkd using ggsn.netdev
+----
+[NetDev]
+Name=ggsn
+Kind=tun
+
+[Tun]
+User=username
+Group=username
+----
+
+.Example: network settings via systemd-networkd using ggsn.network
+----
+[Match]
+Name=ggsn
+
+[Network]
+Address=192.168.7.1
+IPMasquerade=yes
+----
+
+The pair of the configuration files above allows you to create and configure tun device which can be
+used by OsmoGGSN as follows.
+
+.Example: using externally configured tun device as non-root
+----
+ggsn ggsn0
+ gtp state-dir /tmp
+ gtp bind-ip 127.0.0.6
+ apn internet
+ gtpu-mode tun
+ tun-device ggsn
+ type-support v4
+ ip prefix dynamic 192.168.7.0/24
+ ip dns 0 192.168.100.1
+ ip dns 1 8.8.8.8
+ no shutdown
+ default-apn internet
+ no shutdown ggsn
+----
diff --git a/common/chapters/bibliography.adoc b/common/chapters/bibliography.adoc
index a3c6436..9d4c234 100644
--- a/common/chapters/bibliography.adoc
+++ b/common/chapters/bibliography.adoc
@@ -26,8 +26,10 @@
http://ftp.osmocom.org/docs/latest/osmosgsn-usermanual.pdf
- [[[vty-ref-osmosgsn]]] Osmocom Project: OsmoSGSN VTY Reference Manual.
http://ftp.osmocom.org/docs/latest/osmonitb-vty-reference.pdf
-//- [[[userman-openggsn]]] Osmocom Project: OpenGGSN User Manual.
-
+- [[[userman-osmoggsn]]] Osmocom Project: OpenGGSN User Manual.
+ http://ftp.osmocom.org/docs/latest/osmoggsn-usermanual.pdf
+- [[[vty-ref-osmoggsn]]] Osmocom Project: OsmoGGSN VTY Reference Manual.
+ http://ftp.osmocom.org/docs/latest/osmoggsn-vty-reference.pdf
- [[[3gpp-ts-23-048]]] 3GPP TS 23.048: Security mechanisms for the
(U)SIM application toolkit; Stage 2
http://www.3gpp.org/DynaReport/23048.htm