Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the UE attached,but it cannot have the internet connection #3

Open
liyinxin opened this issue Aug 24, 2020 · 9 comments
Open

the UE attached,but it cannot have the internet connection #3

liyinxin opened this issue Aug 24, 2020 · 9 comments

Comments

@liyinxin
Copy link

Hello,can you tell me how to resolve this problem:
the UE attached,but it cannot have the internet connection

@iucgnaw
Copy link

iucgnaw commented Sep 25, 2020

Me too, COTS UE can attach and connect to latest eNB/EPC, but can't bear any data traffic.
Even can't ping PDN (12.1.1.1) from UE, and vice veasa.

@liyinxin
Copy link
Author

i have solved it, you should use iptables to NAT some information

@iucgnaw
Copy link

iucgnaw commented Sep 28, 2020

i have solved it, you should use iptables to NAT some information

Could you kindly share the details how you solve it? Thanks

@liyinxin
Copy link
Author

liyinxin commented Sep 28, 2020

sudo iptables -A FORWARD -i gtp0 -o docker0 -j ACCEPT
sudo iptables -t nat -A POSTROUTING -o docker0 -j MASQUERADE
like this !

@iucgnaw
Copy link

iucgnaw commented Sep 28, 2020

Thanks for quick response! But this seems to solve NAT to Internet.
My situation is the mobile phone can connect, get IP address as 12.1.1.2 (using APN default.ng4T.com). But can't ping peer GW 12.1.1.1, not mention other data traffics...

@liyinxin
Copy link
Author

oh,sorry. i think your phone can connect to the internet , the phone can also ping the 12.1.1.1.i'm sorry to can't help you,

mrlnc added a commit to mrlnc/openair-spgwu-tiny that referenced this issue Oct 8, 2020
The SPGW-U calls `iptables` during startup, but it is never installed in the Dockerfile for ubuntu 18.04. As far as I can tell, this fixes issues where UE-originating traffic makes it to the SPGW-U, but the response never reaches the UE: OPENAIRINTERFACE/openair-epc-fed#3

Seems to be called from this line: https://github.com/OPENAIRINTERFACE/openair-spgwu-tiny/blob/5ca383967fb80910ce92a596ad2853dd5aa520bb/src/spgwu/simpleswitch/pfcp_switch.cpp#L271

I'm following this guide: 
https://github.com/OPENAIRINTERFACE/openair-epc-fed/blob/master/docs/DEPLOY_HOME.md

My log:
```
[2020-10-07T14:57:57.952324] [spgwu] [spgwu_s1u] [start] Started
sh: 1: iptables: not found
net.ipv4.conf.all.forwarding = 1
``
@liyinxin
Copy link
Author

Hi,iucgnaw
I also can't to ping the 12.1.1.2 have you solved it ?

@iucgnaw
Copy link

iucgnaw commented Oct 16, 2020

Not yet, I am working on other stuff now. Maybe you can try develop branch of these EPC compopents?

@liyinxin
Copy link
Author

Not the CUPS's EPC ? use the old version EPC ?
Can you tell me which version you use ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants