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

Share VPN via Hostpot #100

Closed
eakteam opened this issue Apr 2, 2019 · 7 comments
Closed

Share VPN via Hostpot #100

eakteam opened this issue Apr 2, 2019 · 7 comments

Comments

@eakteam
Copy link

eakteam commented Apr 2, 2019

Hi, it would be great if there is any way to share connection from daedalus to other devices via Hostspot

@PeratX
Copy link
Member

PeratX commented Apr 8, 2019

What is Hostpot?

@eakteam
Copy link
Author

eakteam commented Apr 8, 2019

When you enable Portable Hotspot (Tethering) to share mobile internet with other devices...
And this app doesn't work with that ... it would be awesome if it can be done

@Rsplwe
Copy link

Rsplwe commented Apr 9, 2019

@eakteam Sorry, no root can't do this.

@PeratX
Copy link
Member

PeratX commented Apr 9, 2019

Btw, it should be hotspot.
Nope, that's impossible right now.
If you want to do that, Daedalus should setup a universal tunnel to filter every packet and intercept DNS packets, not just change DNS to a local address.
This is not difficult, you can try it yourself!

@eakteam
Copy link
Author

eakteam commented Apr 9, 2019

@PeratX can you please write an example how to achieve this ?

@PeratX
Copy link
Member

PeratX commented Apr 12, 2019

Sorry, the detailed code is not public right now, however, I can give some steps.

  1. listen all address in VPNService
  2. Use something like Pcap4J decode every packet
  3. Filter DNSPackets(TCP or UDP)
  4. Rewrite IPacket and TCP/UDP header to redirect packets
  5. When receive a packet from upstream server, rewrite header again

@PeratX
Copy link
Member

PeratX commented May 12, 2019

Maybe this feature will be implement in a separate DNS server. See #105

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

3 participants