CalypsoBTS GPRS testing

OS: Kali rolling 2018.1.

Hello ! After making a 2G IMSI-catcher (for this article you will need to install the stuff of my article IMSI-Catcher you can skip lcr asterisk sofia sip opencore amr if you don’t want to install all the stuff but you will not handle calls…) we will see how to add GPRS connection with two osmocombb phones. To do that you have to compile transceiver application and trx with osmocom-bb. After that you have to do the following

apt install osmocom-sgsn libosmoabis5 openggsn libsmpp34-0 libosmosccp0libosmonetif3 libgtpnl2 libc-ares-dev

# git clone
# cd calypsogprs

# cd githubcalypso
# mkdir /root/.config/osmocom
# cp * /root/.config/osmocom

chmod +x osmobts-trx

chmod +x osmo-pcu

mkdir /var/lib/ggsn/

Running :

ifconfig wlan0

ifconfig wlan0:0

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -A POSTROUTING -s -t nat -o wlan0 -j MASQUERADE

# iptables -t nat -I PREROUTING -i tun0 -p udp --dport 53 -j DNAT --to-dest
# osmo-nitb -s -c /root/.config/osmocom/open-bsc.conf -l /root/.config/osmocom/hlr.sqlite3 -P -C --debug=DSQL:DLSMS:DRLL:DCC:DMM:DRR:DMSC:DHO:DGPRS:DNS:DLLC:DCTRL
# ggsn -c /root/.config/osmocom/ggsn.conf -f -d
#osmo-sgsn -c /root/.config/osmocom/osmo-sgsn.cfg -d DRLL:DCC:DMM:DRR:DNM:DMSC:DHO:DGPRS:DNS:DLLC:DCTRL
# cd ~/trx/src
# host/osmocon/osmocon -m c123xor -p /dev/ttyUSB0 -s /tmp/osmocom_l2 -c target/firmware/board/compal_e88/trx.highram.bin -r 99
# host/osmocon/osmocon -m c123xor -p /dev/ttyUSB1 -s /tmp/osmocom_l2.2 -c target/firmware/board/compal_e88/trx.highram.bin -r 99
# cd ~/trx/src/host/layer23/src/transceiver/
# ./transceiver -a {arfcn with high rssi] -2 -r 99
# cd ~/calypsogprs
# ./osmobts-trx --debug DRSL:DOML:DLAPDM -r 99 -c /root/.config/osmocom/osmo-bts.cfg
# cd ~/calypsogprs
#./osmo-pcu -c /root/.config/osmocom/osmo-pcu.cfg
when running you should see that


  1. hi bastienbaranoff,
    i like your tutorials very much.
    currently i am trying to port your calypsobts gprs project to an older 32bit notebook with ubuntu 18.04.
    i have build osmocombb firmware successfully and i am able to load firmware into my phones.
    unfortunately, it seems that the osmobts-trx binary from your git is compiled for 64bit systems.
    can you please provide sourcecode or upload a 32bit i686 version?
    i have searched at but there are only osmo-bts OR osmo-trx files 😀
    it would be nice to complete this project and have some fun with my oldschool notebook.
    thank you in advance

1 Trackback / Pingback

  1. Osmocom-bb (IMSI catcher) + Prebuilt VM – Linux hacking

Leave a Reply