[srslte-users] No Internet Connection on Phone

Ralph A. Schmid, dk5ras ralph at schmid.xxx
Mon Jun 15 07:25:32 UTC 2020


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> 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] On Behalf Of Bennett Gogarty
Sent: Friday, June 12, 2020 4:49 PM
To: 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200615/2585fdac/attachment.htm>


More information about the srsran-users mailing list