Borjis131 / docker-open5gs

Open5GS 5G Core Docker images and Docker compose deployments
GNU Affero General Public License v3.0
30 stars 15 forks source link

About ogstun #3

Closed v1ctory3 closed 1 year ago

v1ctory3 commented 1 year ago

Hi, @Borjis131

I'm currently trying to connect with OAI and Open5GS.

I know that in open5gs going back to daemon, you make gtp tunnels through ogstun, but I'm wondering how you can make gtp tunnels in docker-open5gs.

Borjis131 commented 1 year ago

Hi @v1ctory3,

The ogstun TUN interfaces are handled by the UPF container automatically, it just needs the upf.yaml config file with the subnets defined as in Open5GS.

You can find the scripts that parse the UPF YAML config file inside the images/upf/helper_functions.sh.There is a little explanation here, but it just basically parses the YAML subnet fields in the UPF config file and opens the ogstun devices.

Test it with the basic deployment and then experiment a bit with the configuration file. It supports putting names on the TUN devices too!

v1ctory3 commented 1 year ago

Thank you very much for your reply!