[Help] Setup of strongswan-epdg for VoWiFi with Open5GS – Lab with ePDG/AP/Server (192.168.159.116)

Hi everyone,

I’m building a VoWiFi test lab with the following components:

  • Open5GS core already running.
  • ePDG host with IP: 192.168.159.116/24.
  • Local Access Point providing Wi-Fi.
  • I’m trying to integrate strongswan-epdg from Osmocom:
    Making sure you're not a bot!

My Setup Steps (So Far)

  1. I started a Docker container for the ePDG:

docker run -it --rm
–name open5gs-epdg-1
–network host
–privileged
–hostname epdg
-v $(pwd):/osmo-epdg
-w /osmo-epdg
debian:12 /bin/bash

  • Installed all required dependencies listed in the project README.
  • Cloned and entered the strongswan-epdg directory:

git clone Making sure you're not a bot!
cd strongswan-epdg

  1. Ran:

./autogen.sh
./configure
–enable-eap-aka
–enable-eap-aka-3gpp
–enable-eap-aka-3gpp2
–enable-eap-simaka-reauth
–enable-save-keys
–enable-p-cscf
–enable-osmo-epdg

I modified IPs inside swanctl.conf:
(epdg):
local_addrs = 192.168.159.116
(ue):
local_addrs = 192.168.0.1
remote_addrs = 192.168.159.116

Where I’m Stuck

I’m new to ePDG and VoWiFi architecture, and I’m confused on the following points:

  1. MCC/MNC Configuration:
  • Do I need to configure MCC/MNC somewhere in strongswan-epdg?
  • Should it match the Open5GS settings?
  1. Certificates:
  • Should I generate custom certificates (CA/server/client)?
  • Or are there defaults I can use for testing?
  1. UE Configuration:
  • Any example or guide on how to simulate the UE (or phone) side to connect over Wi-Fi to the ePDG?
  1. Integration with Open5GS:
  • What parameters (like APN, IPsec config, etc.) are expected on the Open5GS side?
  1. Missing Documentation:
  • The Git repo lacks detailed configuration steps or a full lab walkthrough.
  • If anyone has example configs (even partial) or deployment tips, I would appreciate it.

Goal

I want to simulate a Wi-Fi calling setup, where:

  • Phone (UE) connects to Wi-Fi → reaches ePDG → IPsec tunnel established → uses IMS via Open5GS.

This is for lab/testing only. Any guidance, examples, or corrections are welcome!

Thanks in advance

i want to add :

after applying the command
``make -j$(nproc)```

i’ve got the below errors

g_provider.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/libstrongswan -I../../../../src/libcharon -I../../../../src/libsimaka -rdynamic -g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -include /root/strongswan-epdg/config.h -MT gsup_client.lo -MD -MP -MF .deps/gsup_client.Tpo -c gsup_client.c  -fPIC -DPIC -o .libs/gsup_client.o
osmo_epdg_listener.c: In function 'authorize':
osmo_epdg_listener.c:154:40: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_E_ROUTING_ERROR'?
154 |         if (resp->gsup.message_type == OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR)
|                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                                        OSMO_GSUP_MSGT_E_ROUTING_ERROR
osmo_epdg_listener.c:154:40: note: each undeclared identifier is reported only once for each function it appears in
osmo_epdg_listener.c:159:45: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_READY_FOR_SM_RESULT'?
159 |         else if (resp->gsup.message_type != OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT)
|                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                                             OSMO_GSUP_MSGT_READY_FOR_SM_RESULT
osmo_epdg_listener.c:168:38: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_org'; did you mean 'pdp_type'?
168 |             (resp->gsup.pdp_infos[0].pdp_type_org != PDP_TYPE_ORG_IETF) ||
|                                      ^~~~~~~~~~~~
|                                      pdp_type
osmo_epdg_listener.c:169:38: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_nr'; did you mean 'pdp_type'?
169 |             (resp->gsup.pdp_infos[0].pdp_type_nr != PDP_TYPE_N_IETF_IPv4))
|                                      ^~~~~~~~~~~
|                                      pdp_type
osmo_epdg_listener.c:177:21: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_address'
177 |         if (pdp_info->pdp_address[0].u.sa.sa_family != AF_INET)
|                     ^~
osmo_epdg_listener.c:183:54: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_address'
183 |         address = host_create_from_sockaddr(&pdp_info->pdp_address[0].u.sa);
|                                                      ^~
make[5]: *** [Makefile:616: osmo_epdg_listener.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
gsup_client.c: In function 'tunnel_request':
gsup_client.c:340:33: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_REQUEST' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_READY_FOR_SM_REQUEST'?
340 |         gsup_msg.message_type = OSMO_GSUP_MSGT_EPDG_TUNNEL_REQUEST;
|                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                                 OSMO_GSUP_MSGT_READY_FOR_SM_REQUEST
gsup_client.c:340:33: note: each undeclared identifier is reported only once for each function it appears in
gsup_client.c:342:34: error: 'OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG' undeclared (first use in this function); did you mean 'OSMO_GSUP_MESSAGE_CLASS_INTER_MSC'?
342 |         gsup_msg.message_class = OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG;
|                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                                  OSMO_GSUP_MESSAGE_CLASS_INTER_MSC
gsup_client.c:349:17: error: 'struct osmo_gsup_message' has no member named 'pco'
349 |         gsup_msg.pco = pco;
|                 ^
gsup_client.c:350:17: error: 'struct osmo_gsup_message' has no member named 'pco_len'
350 |         gsup_msg.pco_len = 7;
|                 ^
gsup_client.c: In function 'send_auth_request':
gsup_client.c:387:34: error: 'OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG' undeclared (first use in this function); did you mean 'OSMO_GSUP_MESSAGE_CLASS_INTER_MSC'?
387 |         gsup_msg.message_class = OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG;
|                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                                  OSMO_GSUP_MESSAGE_CLASS_INTER_MSC
gsup_client.c:442:31: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_nr'; did you mean 'pdp_type'?
442 |         gsup_msg.pdp_infos[0].pdp_type_nr = pdp_type;
|                               ^~~~~~~~~~~
|                               pdp_type
gsup_client.c:443:31: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_org'; did you mean 'pdp_type'?
443 |         gsup_msg.pdp_infos[0].pdp_type_org = PDP_TYPE_ORG_IETF;
|                               ^~~~~~~~~~~~
|                               pdp_type
gsup_client.c: In function 'update_location':
gsup_client.c:488:34: error: 'OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG' undeclared (first use in this function); did you mean 'OSMO_GSUP_MESSAGE_CLASS_INTER_MSC'?
488 |         gsup_msg.message_class = OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG;
|                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                                  OSMO_GSUP_MESSAGE_CLASS_INTER_MSC
gsup_client.c: In function 'on_recv_pdu':
gsup_client.c:617:22: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_E_ROUTING_ERROR'?
617 |                 case OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR:
|                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                      OSMO_GSUP_MSGT_E_ROUTING_ERROR
gsup_client.c:618:22: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_READY_FOR_SM_RESULT'?
618 |                 case OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT:
|                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                      OSMO_GSUP_MSGT_READY_FOR_SM_RESULT
gsup_client.c: At top level:
gsup_client.c:658:12: warning: 'disconnect_gsup' defined but not used [-Wunused-function]
658 | static int disconnect_gsup(private_osmo_epdg_gsup_client_t *this)
|            ^~~~~~~~~~~~~~~
make[5]: *** [Makefile:616: gsup_client.lo] Error 1
make[5]: Leaving directory '/root/strongswan-epdg/src/libcharon/plugins/osmo_epdg'
make[4]: *** [Makefile:2117: all-recursive] Error 1
make[4]: Leaving directory '/root/strongswan-epdg/src/libcharon'
make[3]: *** [Makefile:1407: all] Error 2
make[3]: Leaving directory '/root/strongswan-epdg/src/libcharon'
make[2]: *** [Makefile:540: all-recursive] Error 1
make[2]: Leaving directory '/root/strongswan-epdg/src'
make[1]: *** [Makefile:601: all-recursive] Error 1
make[1]: Leaving directory '/root/strongswan-epdg'
make: *** [Makefile:512: all] Error 2

I think you had to install libosmocore-dev package to fix it.

The error pattern points to a libosmocore API/version mismatch, not a compiler problem.

The ePDG source expects the newer GSUP extensions:

OSMO_GSUP_MSGT_EPDG_TUNNEL_*
OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG
pco / pco_len
pdp_type_org / pdp_type_nr / pdp_address

If those symbols/fields are missing, the installed libosmocore-dev headers are too old for the strongswan-epdg source being compiled.

So simply installing libosmocore-dev may not be sufficient — the required libosmocore version/commit must match the ePDG source.

I would verify the installed headers/version first, then build/install the matching libosmocore revision and rebuild strongSwan:

dpkg -s libosmocore-dev | grep Version

grep -R “OSMO_GSUP_MSGT_EPDG_TUNNEL_REQUEST” /usr/include/osmocom

Once those symbols and the corresponding osmo_gsup_pdp_info fields exist in the installed headers, the make -j$(nproc) failure should move past osmo_epdg_listener.c / gsup_client.c.

The key clue is the compiler suggesting older GSUP symbols such as OSMO_GSUP_MSGT_E_ROUTING_ERROR: the source and libosmocore API are from different generations. (OsmoCom Downloads)