Project

General

Profile

Actions

Hosted epdg playground » History » Revision 7

« Previous | Revision 7/11 (diff) | Next »
lynxis, 02/08/2024 07:53 PM


Hosted epdg playground

This page is going to document the playground that we're setting up for playing with the (in-development state) of osmo-epdg.
The setup is also described using ansible

Hosts

epdg

Hostname: epdg.osmocom.org (IPv4 + IPv6)

netdev IP Description
enp1s0 213.95.46.81 2001:780:45:1d::46:81 Public Internet
enp7s0 ? internal network

This is a Debian 12 VM where the osmo-epdg (consiting of modified strongswan code, erlang ePDG and linux kernel GTP) will run.

epc

Hostname: epc.epdg.osmocom.org (IPv6 only)

netdev IP Description
eth0 2001:780:45:1d::f046:1000 Public Internet
eth1 ? internal network

This is a Debian 12 lxc container where we'll run HSS + PGW (open5gs)

ims

Hostname: ims.epdg.osmocom.org (IPv6 only)

netdev IP Description
eth0 2001:780:45:1d::f046:1001 Public Internet
eth1 ? internal network

This is a Debian 12 lxc container where we'll run the IMS core (Kamailio)

Internal network

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

How to use the playground:

Configure your local UE

Point your UE or use SWu-IKEv2 to use epdg.osmocom.org.
Alternative you can override the correct dns entries.
E.g. epdg.epc.mnc001.mcc001.pub.3gppnetwork.org -> 213.95.46.81

Get your Simcard into the database on epc.epdg.osmocom.org. Use open5gs-dbctl add

Development

To do a test run with the current development state:

- tmux attach -t epdg
- window 0 should contain the osmo-epdg
- window 1 should contain the strongswan

- restart osmo-epdg in window 0. cd /srv/osmo-edpg ; rebar3 shell --config ./config/local.config
- restart strongswan in window 1 systemctl restart strongswan ; journalctl -f -u strongswan

- to improve development speed, you should restart also the smfd or you need to wait until it re-connects.
- The pcrfd also needs to be restarted because the smfd will otherwise reject Session. (It will also automatic re-connect, but takes time too).

ssh root@epc.epdg.osmocom.org systemctl restart open5gs-smfd
sleep 1
ssh root@epc.epdg.osmocom.org systemctl restart open5gs-pcrfd
Files (0)

Updated by lynxis 19 days ago · 7 revisions

Add picture from clipboard (Maximum size: 48.8 MB)