Yeah did that as well. I had that initial doubt that it might not be routing properly
*root@nist:/home/nist# sudo iptables -L -t nat* Chain PREROUTING (policy ACCEPT) target prot opt source destination
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- 10.0.254.0/24 anywhere
On Thu, May 15, 2014 at 3:43 PM, Ivan Kluchnikov < Ivan.Kluchnikov@fairwaves.ru> wrote:
Hi,
Check that you have configured the network correctly. Try to use this: sudo su tunctl ifconfig tap0 127.0.0.2 up echo 1 > /proc/sys/net/ipv4/ip_forward iptables -A POSTROUTING -s 10.0.254.0/24 -t nat -o eth0 -j MASQUERADE
2014-05-15 13:52 GMT+04:00 Joe Ge jijo123789@gmail.com:
Hi Ivan,
I tried with the specified package and the configuration files and all
the
modules seem to be executing properly. Thanks a lot for the help with that.
But there is still some issue as the tunnel doesn't seem to be set up properly.
GGSN Output ...... encaps_tun. Packet received: forwarding to tun encaps_tun. Packet received: forwarding to tun encaps_tun. Packet received: forwarding to tun .....
OSMO-PCU Output ........... 008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL)
len=85
<0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=70 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=71 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=79 <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -65 dBm <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -66 dBm <0001> pcu_l1_if.cpp:282 RACH request received: sapi=1 qta=0, ra=121, fn=2234747 <0002> tbf.cpp:1503 TBF(TFI=0 TLLI=0x00000000 DIR=UL) changing tlli from TLLI=0x00000000 TLLI=0xdeacae72 ul_changed=0 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=70 <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -65 dBm <0001> pcu_l1_if.cpp:282 RACH request received: sapi=1 qta=0, ra=121, fn=2234916 <0002> tbf.cpp:1503 TBF(TFI=0 TLLI=0x00000000 DIR=UL) changing tlli from TLLI=0x00000000 TLLI=0xdeacae72 ul_changed=0 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=71 <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -65 dBm <0001> pcu_l1_if.cpp:282 RACH request received: sapi=1 qta=0, ra=123, fn=2235089 <0002> tbf.cpp:1503 TBF(TFI=0 TLLI=0x00000000 DIR=UL) changing tlli from TLLI=0x00000000 TLLI=0xdeacae72 ul_changed=0 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -65 dBm <0001> pcu_l1_if.cpp:282 RACH request received: sapi=1 qta=0, ra=121, fn=2235910 <0002> tbf.cpp:1503 TBF(TFI=0 TLLI=0x00000000 DIR=UL) changing tlli from TLLI=0x00000000 TLLI=0xdeacae72 ul_changed=0 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=70 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=71 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=71 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=81 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=71 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=81 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=60 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=60 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=81 <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -66 dBm <0001> pcu_l1_if.cpp:282 RACH request received: sapi=1 qta=0, ra=123, fn=2236160 <0002> tbf.cpp:1503 TBF(TFI=0 TLLI=0x00000000 DIR=UL) changing tlli from TLLI=0x00000000 TLLI=0xdeacae72 ul_changed=0 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -66 dBm <0001> pcu_l1_if.cpp:282 RACH request received: sapi=1 qta=0, ra=123, fn=2236313 <0002> tbf.cpp:1503 TBF(TFI=0 TLLI=0x00000000 DIR=UL) changing tlli from TLLI=0x00000000 TLLI=0xdeacae72 ul_changed=0 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=71 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0008> tbf.cpp:1691 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xdeacae72 DIR=UL) len=88 <0007> gprs_rlcmac_meas.cpp:104 UL RSSI of TLLI=0xdeacae72: -66 dBm <0001> pcu_l1_if.cpp:282 RACH request received: sapi=1 qta=0, ra=120, fn=2237386 <0002> tbf.cpp:1503 TBF(TFI=0 TLLI=0x00000000 DIR=UL) changing tlli from TLLI=0x00000000 TLLI=0xdeacae72 ul_changed=0 ...........
The DNS query seems to be reaching the SGSN and getting encapsulated in
GTP
from there on. But the wireshark trace shows that there is no packet captured for the
tap0
interface.
Any suggestions
On Tue, May 13, 2014 at 7:15 PM, Ivan Kluchnikov Ivan.Kluchnikov@fairwaves.ru wrote:
Hi Joe,
If you use UmDESK, osmo-trx, osmo-bts, osmo-nitb and osmo-sgsn should be already installed. So you should use following manual:
=== Build & Install === [osmo-pcu] git clone git://git.osmocom.org/osmo-pcu cd osmo-pcu/ git checkout sysmocom/master autoreconf -i ./configure --enable-sysmocom-bts make cd ..
[openggsn] git clone git://git.osmocom.org/openggsn.git cd openggsn/ autoreconf -i ./configure make sudo make install cd ..
=== Configuration ===
[openggsn configuration] Copy ggsn.conf to /etc directory
[sgsn configuration] Copy osmo_sgsn.cfg to openbsc/openbsc/src/gprs directory
[Network configuration] # We use eth0 interface for connection to the internet, if you use other interface, you should edit fourth line. sudo tunctl sudo ifconfig tap0 127.0.0.2 up sudo echo 1 > /proc/sys/net/ipv4/ip_forward sudo iptables -A POSTROUTING -s 10.0.254.0/24 -t nat -o eth0 -j
MASQUERADE
[OpenBSC configuration]
Add this to the network/bts node in openbsc.cfg:
gprs mode gprs gprs routing area 0 gprs cell bvci 2 gprs nsei 101 gprs nsvc 0 nsvci 101 gprs nsvc 0 local udp port 23030 gprs nsvc 0 remote udp port 23000 gprs nsvc 0 remote ip 127.0.0.1
Allocate some timeslots to packet data (recommend to use at least 4 timeslots for gprs). For this, just change network/bts/trx/timeslot nodes using :
phys_chan_config PDCH
=== Start ===
- ggsn
- sgsn
- pcu
- osmo-nitb
- osmo-bts
- osmo-trx
2014-05-13 14:11 GMT+04:00 Joe Ge jijo123789@gmail.com:
Hi All,
I have installed OpenBSC +Osmo-BTS following Osmocom's netwrok from scratch link http://openbsc.osmocom.org/trac/wiki/network_from_scratch Now I would like to implemenet GPRS facility in the testbedusing OpenGGSN and Osmo-SGSN.
I am using fairwaves UmDESK for this implementation.
I followed the procedure as suggested in the http://openbsc.osmocom.org/trac/wiki/OpenBSC_GPRS with the added modification as suggested in https://wush.net/trac/rangepublic/wiki/fairwaves.gprs
But this doesn't seem to work out.
Currently the systems execute properly with the following outputs
GGSN Output:
root@nist:/home/nist# ggsn cmdline_parser_configfile listen: 127.0.0.1 conf: /etc/ggsn.conf fg: 1 debug: 1 qos: 0x0b921f apn: internet net: 192.168.0.0/24 dynip: 192.168.0.0/24 pidfile: /var/run/ggsn.pid statedir: /var/lib/ggsn/ timelimit: 0 gtpclient: Initialising GTP tunnel openggsn[3822]: GTP: gtp_newgsn() started Creating tun interface Setting tun IP address
Osmo-SGSN Output: root@nist:/home/nist# osmo-sgsn -c OpenBSC_GPRS/openbsc/openbsc/src/gprs/osmo_sgsn.cfg <0010> gprs_ns.c:199 NSVCI=65534 Creating NS-VC
Osmo-PCU Output: root@nist:/home/nist# osmo-pcu No config file: 'osmo-pcu.cfg' Using default config.
With these I also ran: Osmo-NITB Osmobts-TRX Osmo-TRX
All of these run normally as well. My UE is able to detect the network as well but not able to connect
with
it.
Given below are the config file entries
ggsn.conf: listen 127.0.0.1
osmo-sgsn.cfg: gtp local-ip 127.0.0.2 ggsn 0 remote-ip 127.0.0.1 ..... encapsulation udp local-ip 127.0.0.2
open-bsc.cfg: gprs nsvc 0 remote udp port 23000 gprs nsvc 0 remote ip 127.0.0.2
I had the following doubts regarding the given installation procedure
- The fairwaves.gprs implementation using Chemeris's gprs-work seems
to
implement with Asterisk as PBX whereas I require it to run with the osmo-nitb.
- The gprs-work branch still makes use of BTS transceiver and I
wanted
it to work with the Osmo-nitb implementation using osmobts-trx and
osmo-trx
Can somebody please help me out with this?
Or is there any alternative implementation which can be tried to
execute
them together.
Looking forward to hearing from you,
With Regards, Jijo
-- Regards, Ivan Kluchnikov. http://fairwaves.ru
-- Regards, Ivan Kluchnikov. http://fairwaves.ru