RangeNetworks / OpenBTS-UMTS

3G UMTS Data Radio Access Network Node
GNU Affero General Public License v3.0
300 stars 195 forks source link

Problem with IP on OpenBTS-UMTS #15

Open Johne21 opened 6 years ago

Johne21 commented 6 years ago

Hello.

I'm trying to set up a UMTS network with a USRP N210 which has an Ethernet connection with the pc, I already managed to register the sim, however it is not assigned an IP address. Using the sgsn list command I get this:

OpenBTS-UMTS> sgsn list GMM Context: imsi=00101010123456799 ptmsi=0x9a001 tlli=0xc009a001 state=GmmRegisteredNormal age=20 idle=20 UE#1 URNTI=a783 stCELL_FACH IPs=none

and in the OpenBTS console:

17:32.4 UL SM Msg: ActivatePDPContextContextRequest UE#1 URNTI=a783 stCELL_FACH imsi=001010123456799 kbps: 0, ops: 0 configDchPS: UL SF=4 RF=1x9600=9600 pb=16 turbo=1 maxprecoded=3180 tb=8x380=3040 coded=9132

configDchPS: DL SF=8 RF=1x9120=9120 pb=16 turbo=1 maxprecoded=3020 tb=8x340=2720 coded=8172

PDU sizes: 42 42 PDU sizes: 42 42 PDU sizes: 42 42 Opening DCH 17:32.4 DL_DCCH RRC Radio Bearer Setup Message message size=127 UE#1 URNTI=a783 stCELL_FACH rbid=2 ALERT 3030297408 11:17:32.6 URLC. cpp: 1755: rlcWriteLowSide: stateChange: before 6 7 after 6 7 7 17:32.8 UL_DCCH_MessageType_PR_radioBearerSetupFailure UE#1 URNTI=a783 stCELL_FACH rbid=2 unhooking DCH 8dbacf8 waiting to remove.... removed

I need to connect the user with an ftp server installed on the same pc. I hope and can help me, thank you

peterm2109 commented 6 years ago

@Johne21 I have OpenBTS-UMTS installed and I am using an N210 just like you, but I have not reached where you have advanced because the SIM card is not registered ... Can you tell me what sim card you use, what program do you use to record the values, and what were the values that you recorded? I used the PySIM and I recorded the SUPMSIM values IMSI and Ki, but when I try to register in the network I can not do it ... Could you advise me something ... regards Peter

peterm2109 commented 6 years ago

when I enter the command "sgsn list" I get this: OpenBTS> sgsn list   GMM Context: imsi = 001010000000021 ptmsi = 0x34001 tlli = 0xc0034001 state = GmmDeregistered age = 0 idle = 702 MS = not_active IPs = none

Johne21 commented 6 years ago

Hi.

We also use pySIM to record the value of the IMSI, but the ki must be decrypted with a program called "Woron Scan" (it takes about 2 hours) because the ki programmed with pySIM is not real. The SIM Card must be compatible with the COMP128 standard, we use Super SIM X-sim. When the user is registered in the base station, when entering "sgsn list", in "age" a different value of 0 appears.

To solve the problem of the IP we installed a DHCP server with subnet 192.168.99.0, however, we are still not sure that it is the best option but it works.

peterm2109 commented 6 years ago

Thanks Johne... I Will try

El dom., 1 de abr. de 2018 12:23 PM, Johne21 notifications@github.com escribió:

Hi.

We also use pySIM to record the value of the IMSI, but the ki must be decrypted with a program called "Woron Scan" (it takes about 2 hours) because the one programmed with pySIM is not real. The SIM Card must be compatible with the COMP128 standard, we use Super SIM X-sim. When the user is registered in the base station, when entering "sgsn list", in "age" a different value of 0 appears.

To solve the problem of the IP we installed a DHCP server with subnet 192.168.99.0, however, we are still not sure that it is the best option but it works.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RangeNetworks/OpenBTS-UMTS/issues/15#issuecomment-377802195, or mute the thread https://github.com/notifications/unsubscribe-auth/AYj-XJWbpeYYKQlIGYmb3gQjK_ZSVZEjks5tkQ0igaJpZM4S3RKm .

peterm2109 commented 6 years ago

Hi @Johne21
Finally I was able to authenticate the user in the network, thanks for your help. Now the problem that I have is the same that you had. In which computer interface did you install the DHCP server? on the ethernet interface, or in some virtual interface? regards Peter

Johne21 commented 6 years ago

Lo instalé en el mismo computador, con la intrface wlan0, pero igual puede probar la eth0. en este momento no tengo los archivos conmigo, sin embargo cuando los tenga se los envío.

peterm2109 commented 6 years ago

Muchas gracias @Johne21 . si no es mucha molestia y me lo envías te voy a estar muy agradecido de veras peterm2109@gmail.com salu2 Peter

Keskebeu commented 6 years ago

Do you guys use any internal gpsdo?

peterm2109 commented 6 years ago

not me ... @Keskebeu. what do you use that for?

Keskebeu commented 6 years ago

@peterm2109 Thats a gps disciplined oscillator used to synchronize calls in real time.

peterm2109 commented 6 years ago

@Keskebeu.. Do you think it is necessary to fix this problem that I have? I really have no idea how to use it

Keskebeu commented 6 years ago

Have you tried setting up an ip with asterisk ?

On Tue, Apr 10, 2018, 3:09 PM peterm2109 notifications@github.com wrote:

@Keskebeu https://github.com/Keskebeu.. Do you think it is necessary to fix this problem that I have? I really have no idea how to use it

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RangeNetworks/OpenBTS-UMTS/issues/15#issuecomment-380214304, or mute the thread https://github.com/notifications/unsubscribe-auth/AYP2GBUgWMBfTqZpKhS6_npexZrJcX-Cks5tnQNigaJpZM4S3RKm .

Keskebeu commented 6 years ago

That will not solve your issue

peterm2109 commented 6 years ago

@Keskebeu : Have you tried setting up an ip with asterisk ? ... How can I do that?

Keskebeu commented 6 years ago

Are you trying to connect the registered sim card to (sip) make phone calls?

On Tue, Apr 10, 2018, 6:12 PM peterm2109 notifications@github.com wrote:

@Keskebeu https://github.com/Keskebeu : Have you tried setting up an ip with asterisk ? ... How can I do that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RangeNetworks/OpenBTS-UMTS/issues/15#issuecomment-380264130, or mute the thread https://github.com/notifications/unsubscribe-auth/AYP2GNiZWP2SXfWW7yL-Enh2Q-qCfEd8ks5tnS43gaJpZM4S3RKm .

peterm2109 commented 6 years ago

@Keskebeu ... I have not been able to make calls with two terminals yet because I have only one terminal ... excuse the ignorance ... to make a call between two already registered terminals, do I have to have installed asterisk? I thought that when installing OpenBTS-UMTS and subscriberRegistry it was no longer necessary to install asterisk... Excuse me for asking so much

Johne21 commented 6 years ago

Si es posible hacer llamadas con OpenBTS-UMTS? tenía entendido que no soportaba las codificaciones KASUMI y MILANAGE que se utilizan en una red UMTS. Podrían indicarme si estoy equivocado por favor, y como se pueden hacer.

Johne21 commented 6 years ago

@peterm2109. Todavía no consigo los archivos, podría mmostrarme todo lo quele sale escribiendo config en el OpenBTS-UMTSCLI, y enviarme los archivos iptables.rules, interfaces y el archivo de configuración del servidor DHCP.

peterm2109 commented 6 years ago

@Johne21 ... ahorita cuando llegue a casa lo hago... si no es mucha molestia me pudieras facilitar tu correo para no sobrecargar el foro.. salu2 Peter

peterm2109 commented 6 years ago

config: Control.LUR.AttachDetach 1 [default] Control.LUR.FailedRegistration.Message Your handset is not provisioned for this network. [default] Control.LUR.FailedRegistration.ShortCode 1000 [default] Control.LUR.NormalRegistration.Message (disabled) [default] Control.LUR.NormalRegistration.ShortCode 0000 [default] Control.LUR.OpenRegistration (disabled) [default] Control.LUR.OpenRegistration.Message Welcome to the test network. Your IMSI is [default] Control.LUR.OpenRegistration.ShortCode 101 [default] Control.LUR.QueryClassmark 0 [default] Control.LUR.QueryIMEI 0 [default] Control.LUR.SendTMSIs 0 [default] Control.LUR.UnprovisionedRejectCause 0x04 [default] Control.Reporting.TMSITable /var/run/OpenBTS-UMTS-TMSITable.db [default] Control.Reporting.TransactionTable /var/run/OpenBTS-UMTS-TransactionTable.db [default] Control.VEA 0 [default] GGSN.DNS 8.8.8.8 GGSN.Firewall.Enable 0 GGSN.IP.TossDuplicatePackets 0 [default] GGSN.MS.IP.Base 192.168.99.1 [default] GGSN.MS.IP.MaxCount 254 [default] GGSN.MS.IP.Route (disabled) [default] GGSN.ShellScript (disabled) [default] GPRS.Multislot.Max.Downlink 1 [default] GPRS.Multislot.Max.Uplink 1 [default] GPRS.NMO 1 [default] GSM.CCCH.CCCH-CONF 1 [default] GSM.CellSelection.CELL-RESELECT-HYSTERESIS 3 [default] GSM.CellSelection.NCCsPermitted 1 [default] GSM.CellSelection.NECI 1 [default] GSM.Identity.BSIC.BCC 2 [default] GSM.Identity.LAC 1000 [default] GSM.Identity.MCC 001 [default] GSM.Identity.MNC 01 [default] GSM.MaxSpeechLatency 2 [default] GSM.RACH.AC 0x0400 [default] GSM.RACH.MaxRetrans 1 [default] GSM.RACH.TxInteger 14 [default] GSM.RRLP.SEED.LATITUDE 37.777423 [default] GSM.RRLP.SEED.LONGITUDE -122.39807 [default] GSM.ShowCountry 0 [default] GSM.Timer.T3212 0 [default] Log.Alarms.Max 20 [default] Log.Level NOTICE [default] RTP.Range 98 [default] RTP.Start 16484 [default] SIP.DTMF.RFC2833 1 [default] SIP.DTMF.RFC2833.PayloadType 101 [default] SIP.DTMF.RFC2967 0 [default] SIP.Local.IP 127.0.0.1 [default] SIP.Local.Port 5062 [default] SIP.Proxy.Registration 127.0.0.1:5064 [default] SIP.Proxy.SMS 127.0.0.1:5063 [default] SIP.Proxy.Speech 127.0.0.1:5060 [default] SIP.SMSC smsc [default] SMS.FakeSrcSMSC 0000 [default] SMS.MIMEType application/vnd.3gpp.sms [default] SubscriberRegistry.A3A8 /OpenBTS/comp128 [default] SubscriberRegistry.Port 5064 [default] SubscriberRegistry.UpstreamServer (disabled) [default] SubscriberRegistry.db /var/lib/asterisk/sqlite3dir/sqlite3.db [default] TRX.IP 127.0.0.1 [default] UMTS.Identity.CI 10 [default] UMTS.Identity.LAC 132 [default] UMTS.Identity.MCC 001 [default] UMTS.Identity.MNC 01 [default] UMTS.Identity.URAI 100 [default] UMTS.PRACH.SF 32 [default] UMTS.Radio.ARFCNs 1 [default] UMTS.Radio.C0 3050 [default] UMTS.Radio.MaxExpectedDelaySpread 50 [default] UMTS.Radio.PowerManager.MaxAttenDB 10 [default] UMTS.Radio.PowerManager.MinAttenDB 0 [default] UMTS.SCCPCH.SF 64 [default] UMTS.Timer.T3212 30 [default]

iptables.rules:

Generated by iptables-save v1.4.4

*nat :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A POSTROUTING -o wlp3s0 -j MASQUERADE COMMIT

Generated by iptables-save v1.4.4

*filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] COMMIT

dhcpd.conf: shared-network mynet { subnet 192.168.99.0 netmask 255.255.255.0 { range 192.168.99.1 192.168.99.250; option domain-name-servers 8.8.8.8, 4.4.4.4; option domain-name "openbtsdhcp"; default-lease-time 600; max-lease-time 7200; allow unknown-clients; }

interfaces:

interfaces(5) file used by ifup(8) and ifdown(8)

auto lo iface lo inet loopback

auto enp0s25 iface enp0s25 inet static address 192.168.10.1 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255

interface virtual peter auto enp0s25:0 iface enp0s25:0 inet static address 192.168.99.254 netmask 255.255.255.0 network 192.168.99.0 broadcast 192.168.99.255

pre-up iptables-restore < /etc/OpenBTS-UMTS/iptables.rules

peterm2109 commented 6 years ago

@Johne21 ... estuve intercambiando con @Keskebeu y me sugirió que el valor de GGSN.DNS lo cambiara por el DNS primario que muestra la conexión de la computadora donde se está ejecutando el OpenBTS-UMTS... En mi caso como estoy en casa lo cambié para 192.168.1.254 y ya no me arroja el error de antes: 17:32.8 UL_DCCH_MessageType_PR_radioBearerSetupFailure UE#1 URNTI=a783 stCELL_FACH rbid=2 unhooking DCH 8dbacf8 waiting to remove.... removed

Aún no he resuelto que me asigne IP OpenBTS> sgsn list GMM Context: imsi=001010000000026 ptmsi=0x73001 tlli=0xc0073001 state=GmmRegisteredNormal age=622 idle=10 UE#1 URNTI=9014 stCELL_FACH IPs=none.

pero al menos el error que nos daba se me resolvió... ah... esto lo hice con el servidor DHCP deshabiltado... que debe ser que lo tengo mal configurado... cuando puedas me mandas los archivos para ver si lo configuro bien... salu2 Peter