Hi Pau,
Thanks for the help so far. I have tried using the kernel-gtp mode and only managed to cause crashes in the omso-ggsn program. I have updated to the latest git repository for the osmo-ggsn.
After that the instructions mention using openggsn. I'm not sure if there is further configuration required for the kernel gtp module - do I need to create a tunnel? Or should this be done by osmo-ggsn as it did for the gtpu-mode tun setting?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
<0002> ggsn.c:203 APN(S1U): Starting
<0002> ggsn.c:281 APN(S1U): Opening Kernel GTP device gtp0
<0002> gtp-kernel.c:75 Initialized GTP kernel mode (genl ID is 30)
Program received signal SIGSEGV, Segmentation fault.
gtp_kernel_init (gsn=0x0, devname=0x6a6fe0 "gtp0",
prefix=prefix@entry=0x6a76e0, ipup=0x0) at gtp-kernel.c:94
94 if (gtp_dev_create(-1, devname, gsn->fd0, gsn->fd1u) < 0) {
I have tried, without success, to find a sample config file with the kernel-gtp mode in for osmo-ggsn. Is there a sample config file for osmo-ggsn with the kernel-gtp mode selected?
This is my current config file - I have gone through various attempts with different tun_device names.
!
! OpenGGSN (0.94.1-adac) configuration saved from vty
!!
!
! kernel-gtp
log stderr
logging filter all 1
logging color 1
logging print category 0
logging timestamp 0
logging level ip info
logging level tun info
logging level ggsn info
logging level sgsn notice
logging level icmp6 notice
logging level lglobal notice
logging level llapd notice
logging level linp notice
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp info
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 notice
logging level lsccp notice
logging level lsua notice
logging level lm3ua notice
logging level lmgcp notice
!
stats interval 5
!
line vty
no login
!
ggsn tun1
gtp state-dir /tmp
gtp bind-ip 172.16.8.1
apn S1U
gtpu-mode kernel-gtp
tun-device gtp0
type-support v4
ip dns 0 192.168.100.1
ip dns 1 8.8.8.8
no shutdown
default-apn S1U
no shutdown ggsn
Thanks
Dave