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

Suggestion: DNS Forwarding Only mode #148

Open
phantomcraft opened this issue Aug 31, 2019 · 0 comments
Open

Suggestion: DNS Forwarding Only mode #148

phantomcraft opened this issue Aug 31, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@phantomcraft
Copy link

It's just a suggestion, I don't know if you'll find this relevant, but...

When using privileged containers a transparent forwarder with iptables rules is preferable as its faster, but many transparent forwarders don't provide DNS forwarding that's need for the NATed sandbox, so this feature would be useful.

Something like:

$ slirp4netns --dns-fw 172.16.0.1:10053
$ iptables -t nat -A PREROUTING -i some-veth -p udp -m udp -d 172.16.0.1 --dport 53 -j DNAT --to-destination 172.16.0.1:10053

@AkihiroSuda AkihiroSuda added the enhancement New feature or request label Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants