[srslte-users] No Internet Connection on Phone

Mathieu Peyréga mathieu.peyrega at gmail.com
Wed Jun 17 14:15:51 UTC 2020


Hello,

i'm also having issues to get internet on a COTS UE (smartphone).

i'm using :

srslte compiled from github, tag 
https://github.com/srsLTE/srsLTE/releases/tag/release_20_04_1

all defaults config files are used. Only changes are mnc+mcc in epc.conf 
and enb.conf to match the sysmocom sim i'm using, and of course the 
user_db.csv to match the sim too.
The end on the user entry line on the user_db.csv is :

8000,000000002d2f,7,dynamic

i'm using an ubuntu 20.04 x64 PC, connected to internet via ethernet 
(DHCP configuration with reservation on 192.168.1.0/24 with gateway 
192.168.1.1). PC is running EPC and ENB.

The phone connects seems to properly to the LTE network (in the console 
output I have the last line :

Sending EMM Information

and is given IP as shown here : https://photos.app.goo.gl/d682w2q7fUHmnTPR7

is it normal that the gateway used on phone side is not 172.16.0.1 ? The 
gateway is usually the UE IP + or - 1 on the last digit (changing after 
each deconnect / reconnect trial)

DNS is also transmitted correctly as seen on screenshot

The apn on the phone side is configured with no authentification, apn 
name set. network type to LTE. MCC+MNC set.

ip forwarding is configured on the PC : output of sysctl 
net.ipv4.ip_forward is 1*

I tried the command :
sudo ./srsepc_if_mask.sh enp0s31f6 (this is the name of the interface 
with IP 192.168.1.113)
after or before running the EPC (before running the ENB)
and also tried the 3 command lines shown earlier in this thread

None of those trials will enable routing of internet between phone and 
the PC.

I attached enb.log and epc.log for a quick trial :

start EPC
start ENB
trun off plane mode on the phone
wait steady connection on phone (4G displayed on info bar)
quit ENB (command q)
ctrl+c on EPC

The IP seen on phone side match the second one seen in the log UE IP 
172.16.0.3 (seems like there is a first unsuccessfull attemps).

Any clue of what is going wrong (or i'm doing wrong ?)

Regards,

Mathieu


Le 16/06/2020 à 02:17, Bennett Gogarty a écrit :
> I have IP forwarding enabled. I had the first of the IP tables already 
> in there. I added the other two. Now it seems I can ping 8.8.8.8, but 
> it's really slow. I've only gotten two responses back in about 10 
> minutes and the phone still doesn't get internet access. Are there any 
> settings on the phone that might need to be changed?
>
> On Mon, Jun 15, 2020 at 3:26 AM Ralph A. Schmid, dk5ras 
> <ralph at schmid.xxx> wrote:
>
>     Hi,
>
>     Did you enable IP forwarding on the PC that runs the eNB? See
>     https://linuxconfig.org/how-to-turn-on-off-ip-forwarding-in-linux
>
>     I use iptables in my eNB start script to have a route to the internet:
>
>     sudo iptables -t nat -A POSTROUTING -o $(ip addr show | awk
>     '/inet.*brd/{print $NF; exit}') -j MASQUERADE &
>
>     sudo iptables -A FORWARD -i $(ip addr show | awk
>     '/inet.*brd/{print $NF; exit}') -o srs_spgw_sgi -m state --state
>     RELATED,ESTABLISHED -j ACCEPT &
>
>     sudo iptables -A FORWARD -i srs_spgw_sgi -o $(ip addr show | awk
>     '/inet.*brd/{print $NF; exit}') -j ACCEPT
>
>     The purpose of these three lines is grabbing the first internet
>     enabled interface, so on multi NIC systems this is not guaranteed
>     to work, however it does its job on my systems that only have
>     Ethernet and WLAN.
>
>     Ralph.
>
>     *From:*srslte-users
>     [mailto:srslte-users-bounces at lists.softwareradiosystems.com
>     <mailto:srslte-users-bounces at lists.softwareradiosystems.com>] *On
>     Behalf Of *Bennett Gogarty
>     *Sent:* Friday, June 12, 2020 4:49 PM
>     *To:* srslte-users at lists.softwareradiosystems.com
>     <mailto:srslte-users at lists.softwareradiosystems.com>
>     *Subject:* [srslte-users] No Internet Connection on Phone
>
>     I ran the masquerade script and I have a phone connected to srsENB
>     and the phone pulls a 172.16.0.2 IP address but cannot connect
>     phone to the internet. Is there an additional setting on the
>     mobile device that needs to be adjusted? Or need to have a route
>     added manually?
>
>
> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users


-- 
tel : +33 (0)6 87 30 83 59

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200617/9df41fcd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enb.log
Type: application/dflog
Size: 822576 bytes
Desc: not available
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200617/9df41fcd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: epc.log
Type: application/dflog
Size: 17546 bytes
Desc: not available
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200617/9df41fcd/attachment-0001.bin>


More information about the srsran-users mailing list