<div dir="ltr"><div>Thank you Neels!<br><br>The "logfile /tmp/foo" did gave an error message saying "unrecognized option".<br><br></div><div>I'm going to look at DNS packets going through a GGSN to try and find ways to detect DNS tunnels, do you have any recommendations how to do this?<br></div><div>I do not have the time or resources to use real UE's so I hope to simulate it on a computer using VMs or something like that.<br><br></div><div>I have looked at this: <a href="http://openbsc.osmocom.org/trac/wiki/OpenBSC_GPRS">http://openbsc.osmocom.org/trac/wiki/OpenBSC_GPRS</a> as an idea of how to set up the testbed, but I do not know which of the nodes I really need. Do you have any idea?<br><br><br></div><div>Regards<br></div><div>Terje Kristoffer Skow<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-29 18:50 GMT+01:00 Neels Hofmeyr <span dir="ltr"><<a href="mailto:nhofmeyr@sysmocom.de" target="_blank">nhofmeyr@sysmocom.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Terje,<br>
<span class=""><br>
On Mon, Feb 29, 2016 at 12:46:30PM +0100, Terje Kristoffer Hybbestad Skow wrote:<br>
> Does this mailinglist also regard openGGSN?<br>
<br>
</span>Yes, the Osmocom community has adopted maintenance of OpenGGSN, even though it<br>
wasn't written "here".<br>
<span class=""><br>
> If so do I have some questions. I have problem setting it up correctly.<br>
<br>
</span>To test the basic openggsn I used to do something like this:<br>
<br>
<br>
  sudo -s<br>
<br>
  LD_LIBRARY_PATH=/usr/local/lib ./git/openggsn/ggsn/ggsn -f -c ./localggsn.conf &<br>
<br>
  ./git/openggsn/sgsnemu/sgsnemu --createif -l 127.0.0.1 -r 127.0.0.2<br>
<br>
<br>
With localggsn.conf as<br>
<br>
listen 127.0.0.2<br>
net <a href="http://127.0.0.0/24" rel="noreferrer" target="_blank">127.0.0.0/24</a><br>
pcodns1 8.8.8.8<br>
logfile /tmp/foo<br>
<br>
<br>
The above works on linux because it allows implicitly creating the 127.*.*.*<br>
interfaces. On other OSes, you'd have to create those first on one of your<br>
network interfaces.<br>
<br>
See <a href="http://git.osmocom.org/openggsn/tree/examples/ggsn.conf" rel="noreferrer" target="_blank">http://git.osmocom.org/openggsn/tree/examples/ggsn.conf</a> for more config<br>
options.<br>
<br>
I'd recommend to use wireshark to see what packets are transmitted back and<br>
forth, if you're not already doing that.<br>
<br>
I've "recently" implemented GTPhub, which relays GTP, e.g. through a NAT. If<br>
that's of interest too, call again, and I can give you an example config for<br>
testing sgsnemu -> gtphub -> openggsn, too.<br>
<br>
To actually relay data through the tunnel interface that is created, AFAIK you<br>
first need to send a Create PDP Context message to the GGSN. Maybe read<br>
<a href="http://git.osmocom.org/openbsc/tree/openbsc/tests/gtphub/gtphub_test.c" rel="noreferrer" target="_blank">http://git.osmocom.org/openbsc/tree/openbsc/tests/gtphub/gtphub_test.c</a><br>
For testing real data, I used an actual sysmoBTS with a "special" SIM card<br>
instead of sgsnemu, because here in the lab that was easier... :P<br>
<br>
Hope to have helped :)<br>
<span class="HOEnZb"><font color="#888888"><br>
~Neels<br>
<br>
<br>
<br>
--<br>
- Neels Hofmeyr <<a href="mailto:nhofmeyr@sysmocom.de">nhofmeyr@sysmocom.de</a>>          <a href="http://www.sysmocom.de/" rel="noreferrer" target="_blank">http://www.sysmocom.de/</a><br>
=======================================================================<br>
* sysmocom - systems for mobile communications GmbH<br>
* Alt-Moabit 93<br>
* 10559 Berlin, Germany<br>
* Sitz / Registered office: Berlin, HRB 134158 B<br>
* Geschäftsführer / Managing Directors: Holger Freyther, Harald Welte<br>
</font></span></blockquote></div><br></div>