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

Cannot access Interface with IPv6 ULA | Ad Replace does not work #1109

Closed
3 tasks done
pkramme opened this issue Jan 7, 2017 · 38 comments
Closed
3 tasks done

Cannot access Interface with IPv6 ULA | Ad Replace does not work #1109

pkramme opened this issue Jan 7, 2017 · 38 comments

Comments

@pkramme
Copy link

pkramme commented Jan 7, 2017

In raising this issue, I confirm the following (please check boxes, eg [X]) Failure to fill the template will close your issue:

How familiar are you with the codebase?:

2


[FEATURE REQUEST | QUESTION | OTHER]:

Please submit your feature request here, so it is votable by the community. It's also easier for us to track.

[BUG | ISSUE] Expected Behaviour:
I want to be able to access Pi-Hole via ULA from local DHCPv6 Server
I want to be able to specify Pi-Hole as primary DNS with it's ULA
[BUG | ISSUE] Actual Behaviour:
I cannot access Pi-Hole via ULA: Failed Host Check: vs 192.168.178.20, [fd00::768e:ec4a:8a83:85b2], pi.hole, localhost
I cannot specify Pi-Hole's ULA in DNSv6 field in router ( i can, but it does not work)
Pi-Hole's Interface only shows global IPv6 address, which is useless, as it changes because of my ISP.

[BUG | ISSUE] Steps to reproduce:
See above

(Optional) Debug token generated by pihole -d:

dzklv1uua9

This template was created based on the work of udemy-dl.

@pkramme pkramme changed the title Cannot access Interface via ULA Cannot access Interface / DNS does not work via ULA Jan 7, 2017
@pkramme
Copy link
Author

pkramme commented Jan 7, 2017

This is actually strange... YouTube ads are gone, doubleclicks not, others unchecked.

@AzureMarker
Copy link
Contributor

Try modifying /etc/pihole/setupVars.conf with the ULA and then run pihole -r and choose Repair. Are you trying to go to the web interface via the IPv6 address, or hostname?

@pkramme
Copy link
Author

pkramme commented Jan 7, 2017

Via IPv6. I modified it, ULA is showing up in interface but it's still not working...

@pkramme
Copy link
Author

pkramme commented Jan 8, 2017

After reconfigurating everything, Blocking works. It seems like DHCPv6 didn't push the new DNS server. This states another issue, instead of the usual white blocking i get an "May be down or has moved permanently" chrome page. Interface is still not reachable through IPv6 ULA.

@pkramme
Copy link
Author

pkramme commented Jan 8, 2017

ytadblock

@pkramme pkramme changed the title Cannot access Interface / DNS does not work via ULA Cannot access Interface with IPv6 ULA | Ad Replace does not work Jan 8, 2017
@AzureMarker
Copy link
Contributor

Advertisements which are blocked over https will show that because Pi-hole doesn't have a correct certificate for that ad domain. Is lighttpd listening on that ULA address?

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017 via email

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017 via email

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

Not sure I'm following. ULA's are by definition non-routeable address space. What is the behaviour you would expect. ULA's are only applicable to the devices on the wire in the internal network.

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017 via email

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

And what does ss -ltpn show for the IPv6 listener for lighttpd?

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017

LISTEN 0 1024 :80 :
LISTEN 0 5 :53 :
LISTEN 0 128 :22 :
LISTEN 0 100 :25 :
LISTEN 0 1024 :::80 :::

LISTEN 0 5 :::53 :::

LISTEN 0 128 :::22 :::

LISTEN 0 100 :::25 :::

pi@raspberrypi:~ $

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

Try a curl -I http://<IPv6 ADDRESS> and see if you get an X-Header for Pi-hole.

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017 via email

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

Okay, so we know that the lighttpd is responding to requests. What happens when you try curl -I http://<IPV6 ADDRESS>/admin/

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017 via email

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

Copy of /etc/lighttpd/lighttpd.conf? As well? You can cat /etc/lighttpd/lighttpd.conf | nc tricorder.pi-hole.net 9999 if you'd rather not post it up here...

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017

Done: 29oqg76t7j

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017

I thought about adding server.use-ipv6 = true, but there is already something about "Trying to use IPv6, otherwise fall back to IPv4"

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

The server is responding, and giving you either a 200 or a 301, so we know that it's listening to IPv6 and doing something, it's just that the 301 should be a redirect to /admin/ from /admin

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017 via email

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

Give it a try and see what you can come up with, the web guys are all asleep right now so it will be a while before they are up and around to check on things.

@pkramme
Copy link
Author

pkramme commented Jan 9, 2017 via email

@dschaper
Copy link
Member

dschaper commented Jan 9, 2017

Sure, we'll keep on working at it until we get a solution. (I'm an old Cisco routerjock, so I tend to stay away from the web things! :) )

@dschaper
Copy link
Member

@Mcat12 or @DL6ER any thoughts on this one?

@AzureMarker
Copy link
Contributor

What is the output of curl -I http://[fd00::768e:ec4a:8a83:85b2]/admin/? How about curl -I http://pi.hole/admin/index.php? After that, send another debug token.

@pkramme
Copy link
Author

pkramme commented Jan 18, 2017

screenshot_2017-01-18-06-09-26
screenshot_2017-01-18-06-08-42
itsi7v420s

@DL6ER
Copy link
Member

DL6ER commented Jan 18, 2017

Thanks. I still have no working IPv6 in my test environment, but that comes Monday (either that or I won't have internet connection at all, I guess).

Anyhow, I did some dry-runs and PHP doesn't like IPv6 (once again). See this issue (which is still open):

https://bugs.php.net/bug.php?id=72811

I'm working on a solution for your problem.

@DL6ER
Copy link
Member

DL6ER commented Jan 18, 2017

The PR shown above should fix the problem you described above:

I cannot access Pi-Hole via ULA: Failed Host Check: vs 192.168.178.20, [fd00::768e:ec4a:8a83:85b2], pi.hole, localhost

In addition, you say "Ad Replace does not work". I'm not sure what the status is here.

@pkramme
Copy link
Author

pkramme commented Jan 18, 2017

Ad block does work, but the blank page replace does not (because of https).

Thank you very much. Thats the reason why i like this project very much: The super fast, friendly and reliable support in addition to a very helpful program. Keep up the good work!

I will update my servers and then close the issue if the problem is resolved once its merged.

@DL6ER
Copy link
Member

DL6ER commented Jan 18, 2017

I've seen that this issue is already 11 days old, but to be honest I haven't noticed it until @dschaper summoned me since it was in the pi-hole repo instead of the AdminLTE repo. But I agree that it is not always obvious where issues should go.

@pkramme
Copy link
Author

pkramme commented Jan 19, 2017 via email

@AzureMarker
Copy link
Contributor

We have found that keeping issues in the relevant repos is more organized and allows us to take advantage of Github's features best.

@DL6ER
Copy link
Member

DL6ER commented Jan 22, 2017

I will update my servers and then close the issue if the problem is resolved once its merged.

@paulkramme Did you already made progress on this?

@pkramme
Copy link
Author

pkramme commented Jan 22, 2017

Updated the server over curl script, still not working. Did i update it wrong? Sounds stupid, but maybe do i have to install it manually? From a quick look at the basic install it plain and simple clones the repo, right?

@jacobsalmela
Copy link
Contributor

@paulkramme, we released a new version today. @DL6ER's PR was merged; will you report back if you are still having this issue?

@pkramme
Copy link
Author

pkramme commented Jan 29, 2017 via email

@DL6ER
Copy link
Member

DL6ER commented Jan 29, 2017

Hmm, that fails now at a different place in the code. Interestingly, I have been using the web interface for quite some time now in my IPv6-only environment at home, but never seen this. I'll put in a PR that will strip the extra "http://" you are getting in $_SERVER['HTTP_ORIGIN'].

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

5 participants