OPENAIRINTERFACE / openair-epc-fed

Federation of all Open-Air-CN components
BSD 3-Clause "New" or "Revised" License
63 stars 67 forks source link

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

Open liyinxin opened 4 years ago

liyinxin commented 4 years ago

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

iucgnaw commented 4 years ago

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 commented 4 years ago

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

iucgnaw commented 4 years ago

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

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

liyinxin commented 4 years ago

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

iucgnaw commented 4 years ago

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 commented 4 years ago

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,

liyinxin commented 4 years ago

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

iucgnaw commented 4 years ago

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

liyinxin commented 4 years ago

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