Project

General

Profile

Hosted epdg playground » History » Version 6

lynxis, 02/08/2024 07:34 PM

1 1 laforge
h1. Hosted epdg playground
2
3
This page is going to document the _playground_ that we're setting up for playing with the (in-development state) of osmo-epdg.
4
5
6
h2. Hosts
7
8
h3. epdg
9
10
Hostname: @epdg.osmocom.org@ (IPv4 + IPv6)
11
12 2 laforge
|_.netdev|_.IP|_.Description|
13
|enp1s0|213.95.46.81 2001:780:45:1d::46:81|Public Internet|
14
|enp7s0|?|internal network|
15
16 1 laforge
This is a Debian 12 VM where the osmo-epdg (consiting of modified strongswan code, erlang ePDG and linux kernel GTP) will run.
17
18
h3. epc
19
20 3 lynxis
Hostname: @epc.epdg.osmocom.org@ (IPv6 only)
21 1 laforge
22 2 laforge
|_.netdev|_.IP|_.Description|
23
|eth0|2001:780:45:1d::f046:1000|Public Internet|
24
|eth1|?|internal network|
25
26
27 1 laforge
This is a Debian 12 lxc container where we'll run HSS + PGW (open5gs)
28
29
h3. ims
30
31
Hostname: @ims.epdg.osmocom.org@ (IPv6 only)
32 2 laforge
33
|_.netdev|_.IP|_.Description|
34
|eth0|2001:780:45:1d::f046:1001|Public Internet|
35
|eth1|?|internal network|
36 1 laforge
37
This is a Debian 12 lxc container where we'll run the IMS core (Kamailio)
38
39
h2. Internal network
40
41
The hosts mentioned above share a private bridged network.  That network has no DHCP server and no router. It's purely for communication between the network elements
42 4 lynxis
43
44
h2. How to use the playground:
45
46
h3. Configure your local UE
47
48 5 lynxis
Point your UE or use SWu-IKEv2 to use @epdg.osmocom.org@.
49
Alternative you can override the correct dns entries.
50 6 lynxis
E.g. @epdg.epc.mnc001.mcc001.pub.3gppnetwork.org -> 213.95.46.81@
51
52
Get your Simcard into the database on epc.epdg.osmocom.org. Use @open5gs-dbctl add@
53 4 lynxis
54
h3. Development
55
56
To do a test run with the current development state:
57
58
- @tmux attach -t epdg@
59
- window 0 should contain the osmo-epdg
60
- window 1 should contain the strongswan
61
62
- restart osmo-epdg in window 0. @cd /srv/osmo-edpg ; rebar3 shell --config ./config/local.config@
63
- restart strongswan in window 1 @systemctl restart strongswan ; journalctl -f -u strongswan@
64
65
- to improve development speed, you should restart also the smfd or you need to wait until it re-connects.
66
- The pcrfd also needs to be restarted because the smfd will otherwise reject Session. (It will also automatic re-connect, but takes time too).
67
68
<pre>
69
ssh root@epc.epdg.osmocom.org systemctl restart open5gs-smfd
70
sleep 1
71
ssh root@epc.epdg.osmocom.org systemctl restart open5gs-pcrfd
72
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)