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

DNS configuration #69

Closed
avrodriguezgrad opened this issue Feb 5, 2024 · 3 comments
Closed

DNS configuration #69

avrodriguezgrad opened this issue Feb 5, 2024 · 3 comments

Comments

@avrodriguezgrad
Copy link

Hi @linouxis9

I am starting to use PacketRusher, and I believe it's incredible. Thank you for this tool!

I have a doubt regarding DNS configuration. Do you know if it's possible to config 5GC dns servers in VRF? I'm using Open5GS, and connectivity through IP works well, but when I try to ping a name (google.es e.g.), it is not working.

Thanks in advance,
Álvaro

@linouxis9
Copy link
Member

Hi @avrodriguezgrad,

Thank you for the kind words! Thank you for the great work on the Gradiant project as well!
I think you are hitting an issue similar to this one https://people.kernel.org/dsahern/management-vrf-and-dns

Does it work if you set as nameserver 1.1.1.1 in /etc/resolv.conf?

Thanks and cheers,
Valentin

@avrodriguezgrad
Copy link
Author

Yes, it works! The problem is what the article says about isolation of vrf. resolv.conf was configured with 127.0.0.53, so vrf interface does not reach DNS servers. If I set a different nameserver, it works.

Now, I have to figure out how to config this automatically, but I assume that this will not be a problem when implementing eBPF.

Thanks,
Álvaro

@linouxis9
Copy link
Member

linouxis9 commented Feb 6, 2024

The big issue, is that in Linux, you cannot set a nameserver per VRF.
So you'll have an issue either with your UE if you choose a nameserver reachable only by your host (systemd-resolved 127.0.0.53), or with your host if you choose a nameserver reachable only by your UE / through the GTP-U tunnel.

This won't be an issue if you run PacketRusher inside a container however, as the /etc/resolv.conf will affect only the container's domain resolution.

Cheers,
Valentin

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