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

Reach Hyperboria via Clearnet Overlay #27

Open
benhylau opened this issue Feb 10, 2015 · 5 comments
Open

Reach Hyperboria via Clearnet Overlay #27

benhylau opened this issue Feb 10, 2015 · 5 comments

Comments

@benhylau
Copy link
Member

I am not sure what exactly needs to be done to make this happen. But the goal is to reach a Hyperboria-only site from the default browser.

@lgierth @kpcyrd I imagine we'd first need peering creds in cjdroute.conf or some kind of peers.d. Then we can get cjdroute running in the background. The we need to set up a VpnService, right?

@kpcyrd
Copy link
Member

kpcyrd commented Feb 10, 2015

I don't think it'd be a good idea to modify the config automatically (obviously, since I've implemented peers.d for this reason). In yrd, I'm starting up cjdroute with a blank config and add the connections during runtime. Usually, this is being done by the cjdroute angle process in the same way.

I think it'd require some hard work on cjdroute to make it work with VpnService, since this requires the tun device to be plugable. I'm not sure if this is currently the case. A file descriptor interface in cjdroute would be useful, so we can just read the packets from the VpnService fd and pass them to the cjdroute fd.

After that is done, all applications should be able to access the fc00::/8 network, since we've registered a route in the kernel.

A concerns from the VpnService docs:

There can be only one VPN connection running at the same time. The existing interface is deactivated when a new one is created.

This would prevent a user from using the openvpn app and cjdns-android at the same time.

@benhylau
Copy link
Member Author

Yea I really hate the idea of directly modifying conf too. So a yrd port to Java? Now it's Python-only right?

I guess one VPN at a time, switching as needed, isn't too horrible.

@kpcyrd
Copy link
Member

kpcyrd commented Feb 10, 2015

yrd is python only, yes, but it should be easy to port it to java, since it can be used as reference on how to talk to the admin API.

It'd be an issue if you need openvpn for your business email and want to connect to your personal email over hype, but I'm not sure if that's very likely.

@benhylau
Copy link
Member Author

The guy probably has a Blackberry in this case 😆

@benhylau
Copy link
Member Author

Embed a bunch of public peers by default and select from phone via nodeinfo.json and smallest ping.

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

No branches or pull requests

2 participants