8000 GitHub - edingroot/upf
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

edingroot/upf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

free5GC-UPF

Get Started

Prerequisites

Libraries used in UPF

sudo apt-get -y update
sudo apt-get -y install git gcc cmake go libmnl-dev autoconf libtool libyaml-dev
go get github.com/sirupsen/logrus

Linux kernel module 5G GTP-U (Linux kernel version = 5.0.0-23-generic)

git clone https://github.com/PrinzOwO/gtp5g.git
cd gtp5g
make
sudo make install

Build

mkdir build
cd build
cmake ..
make -j`nproc`

Test

cd build/bin
./testutlt

Edit configuration file

After building from sources, edit ./build/config/upfcfg.yaml

Setup environment

sh -c 'echo 1 > /proc/sys/net/ipv4/ip_forward'
iptables -t nat -A POSTROUTING -o {DN_Interface_Name} -j MASQUERADE

Run

cd build
sudo -E ./bin/free5gc-upfd

To show usage: ./bin/free5gc-upfd -h

Clean the Environment (if needed)

Remove POSIX message queues

ls /dev/mqueue/
rm /dev/mqueue/*

Remove gtp devices (using tools in libgtp5gnl)

cd lib/libgtp5gnl/tools
sudo ./gtp5g-link del {Dev-Name}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 92.4%
  • C++ 2.7%
  • Shell 2.5%
  • CMake 1.4%
  • Go 0.4%
  • M4 0.3%
  • Makefile 0.3%
0