Use Wirelab NextEPC or Official NextEPC commit 2afb6b
Virtual network - NAT
ens3
(in this example)<Host Interface Name>
ens4
(in this example)eNodeB Information (in this example)
USIM Information (in this example)
You can either follow instructions from Part A ~ Part C or directly execute the shell on the bottom of this document.
Install Mongo DB with Package Manager.
To run NextEPC with least privilege, TUN device permission should be a crw-rw-rw-(666).
Write the configuration file for the TUN deivce.
Check IPv6 Kernel Configuration. Although you can skip this process, we recommend that you set this up to support IPv6-enabled UE.
You are now ready to set the IP address on TUN device. If IPv6 is disabled for TUN device, please remove Address=cafe::1/64
from below.
Add the following lines into /etc/network/interfaces
for network-manager service
Restart pgwtun interface
Install the depedencies for building the source
Git clone and compile
We provide a program that checks whether the installation is correct.
After running the wireshark, select loopback
interface, filter s1ap || diameter || gtpv2 || gtp
and run ./test/testepc
. You can see the virtually created packets. [testepc.pcapng]
The daemon nextepc-epcd
includes both MME, SGW, PGW, HSS, and PCRF.
So, instead of running all 5 daemons, you can just run nextepc-epcd
in your development environment.
nextepc-epcd
./install/var/log/nextepc/nextepc.log
../install/etc/nextepc/nextepc.conf
.-f
argument to specify config file to be used.Install the dependencies to run WebUI (first time)
Running WebUI
Now the web server is running on http://localhost:3000.
Modify ./install/etc/nextepc/nextepc.conf
mme-slap address (line 66)
sgw-gtpu address (line 212)
MME GUMMEI (line 100)
MME TAI (line 139)
cd ./webui && npm run dev
IMSI
, K
, OPc
[Option 1] Need to run on every boot
[Option 2] or configure as auto run on boot
To completely rebuild after modifying source code
addr: 192.188.2.2
Make sure all config file and environment settings are correct.
Kill testepc process which didn't finish correctly
Remove test subscriber left by previous failed test (Issue #57)
ERRR: - The certificate is expired
(Issue #94)
Address already in use
config.status: error: cannot find input file: `Makefile.in'
(Issue #68)
Please make some modifications to the environment variables on the top of this script if needed according to the actual condition.
Bash Script for Ubuntu 18.04 Minimal Installation