[srslte-users] No Internet Connection on Phone

Bennett Gogarty thetanu861 at gmail.com
Tue Jun 16 00:17:00 UTC 2020


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] *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/bc092430/attachment.htm>


More information about the srsran-users mailing list