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

Cjdns with Qubes 4.0 #178

Open
pruflyos opened this issue Apr 24, 2018 · 9 comments
Open

Cjdns with Qubes 4.0 #178

pruflyos opened this issue Apr 24, 2018 · 9 comments

Comments

@pruflyos
Copy link

Qubes 4.0 now supports IPv6 forwarding. Therefore I created a how-to for setting Cjdns up as a ProxyVM which gives transparent access to Hyperboria to any AppVM:
https://github.com/pruflyos/qubes-doc/blob/patch-1/configuration/cjdns.md

I'd be glad for any feedback on the approach and submitted this how-to for inclusion in the Qubes documentation.

@progval
Copy link

progval commented Apr 24, 2018

Qubes 4.0 now supports IPv6 forwarding.

Cooool! I may try using Qubes again as my main system then

Therefore I created a how-to for setting Cjdns up as a ProxyVM which gives transparent access to Hyperboria to any AppVM:
https://github.com/pruflyos/qubes-doc/blob/patch-1/configuration/cjdns.md

Thanks! I'll look into it.

@asdfghjz
Copy link

asdfghjz commented Aug 13, 2018

@pruflyos One recommendation is to offer issues they appear to be blocked/removed.
I tried running it but keep getting this:

user@cjdns-gw:~/cjdns$ sudo echo "binds+=( '/etc/cjdroute.conf' )" > /etc/qubes-bind-dirs.d/10_cjdns.conf
bash: /etc/qubes-bind-dirs.d/10_cjdns.conf: No such file or directory

I checked using dolphin a file manager for Debian and it appears that their is no folder "/etc/qubes-bind-dirs.d". Could this be an issue with my OS or do I need to create that folder?

@pruflyos
Copy link
Author

Could this be an issue with my OS or do I need to create that folder?

Just create that directory with sudo mkdir -p /etc/qubes-bind-dirs.d. It doesn't exist by default, which I didn't consider in the documentation.

@asdfghjz
Copy link

asdfghjz commented Aug 17, 2018

@pruflyos
I still get errors:

user@cjdns-gw:~$ sudo mkdir -p /etc/qubes-bind-dirs.d
user@cjdns-gw:~$ sudo mkdir /etc/qubes-bind-dirs.d
mkdir: cannot create directory ‘/etc/qubes-bind-dirs.d’: File exists
user@cjdns-gw:~$ sudo mkdir /etc/qubes-bind-dirs.d
mkdir: cannot create directory ‘/etc/qubes-bind-dirs.d’: File exists
user@cjdns-gw:~$ sudo mkdir -p /etc/qubes-bind-dirs.d
user@cjdns-gw:~$ sudo echo "binds+=( '/etc/cjdroute.conf' )" > /etc/qubes-bind-dirs.d/10_cjdns.conf
bash: /etc/qubes-bind-dirs.d/10_cjdns.conf: Permission denied
user@cjdns-gw:~$ sudo echo "binds+=( '/etc/cjdroute.conf' )" > /etc/qubes-bind-dirs.d/10_cjdns.conf
bash: /etc/qubes-bind-dirs.d/10_cjdns.conf: Permission denied
user@cjdns-gw:~$ 

The main issue appears to be the "permission denied" part. Is there something else I need to add?

@progval
Copy link

progval commented Aug 17, 2018

sudo only runs the echo as root, not the pipe. Do this instead:

echo "binds+=( '/etc/cjdroute.conf' )" | sudo tee /etc/qubes-bind-dirs.d/10_cjdns.conf

@pruflyos
Copy link
Author

sudo only runs the echo as root, not the pipe

Thanks @progval , I fixed that in the documentation as well.

@asdfghjz
Copy link

asdfghjz commented Aug 18, 2018

@pruflyos I got some new error on 10

user@sys-cjdns:~$ sudo ifconfig | grep -B1 "inet6 fc"
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1304
        inet6 fc2b:f92a:fc84:5197:8277:279:7697:f1d4  prefixlen 8  scopeid 0x0<global>
user@sys-cjdns:~$ ^C

and

[user@test-cjdns ~]$ ping 6 -c3 fc2b:f92a:fc84:5197:8277:279:7697:f1d4
ping6: Source routing is deprecated by RFC5095.
Usage: ping6 [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
             [-l preload] [-m mark] [-M pmtudisc_option]
             [-N nodeinfo_option] [-p pattern] [-Q tclass] [-s packetsize]
             [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline]
             [-W timeout] destination
[user@test-cjdns ~]$ 

I also made some pull requests.

@pruflyos
Copy link
Author

Your mistake is the space in the command ping 6. You should type ping6 (without the space).

@pruflyos
Copy link
Author

I merged your pull requests. Thanks!

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