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

DietPi-Software | Pi-hole: Whitelist GEO IP API we use in banner and DietPi-VPN #4405

Merged
merged 4 commits into from
May 22, 2021

Conversation

MichaIng
Copy link
Owner

Status: Ready

Commit list/description:

  • DietPi-Patches | Pi-hole: Whitelist domain of GEO IP API we use in banner and DietPi-VPN as this is part of public blocklists
  • DietPi-Software | Pi-hole: Whitelist domain of GEO IP API we use in banner and DietPi-VPN as this is part of public blocklists

+ DietPi-Patches | Pi-hole: Whitelist domain of GEO IP API we use in banner and DietPi-VPN as this is part of public blocklists
+ DietPi-Software | Pi-hole: Whitelist domain of GEO IP API we use in banner and DietPi-VPN as this is part of public blocklists
@Joulinar
Copy link
Collaborator

We will do this without user notification?

@ravenclaw900
Copy link
Collaborator

It would probably be good to at least put a comment for that entry, but I don’t think that you can do it from the command line.

@Joulinar
Copy link
Collaborator

technically it's working

root@DietPiProd:~# pihole -w freegeoip.app
  [i] Adding freegeoip.app to the whitelist...
  [✓] Reloading DNS lists
root@DietPiProd:~#

WAN IP is now being detected

- WAN IP : 93.x.x.x Region Germany

image

+ DietPi-Patches | Pi-hole: Add info why we whitelist the GEO IP domain and add comment to the whitelist entry as well
+ DietPi-Software | Inform user about why we whitelist the GEO IP domain and add a comment to the whitelist entry
@MichaIng
Copy link
Owner Author

MichaIng commented May 22, 2021

We will do this without user notification?

The pihole command prints nicely what is done, but I added another notification about why we do it 👍.

It would probably be good to at least put a comment for that entry, but I don’t think that you can do it from the command line.

I didn't know about those comments and they can be added via CLI as well, which I've added now 👍.

Great is also that existing entries are gracefully replaced by the command, so no problem in running the same command multiple times, on reinstalls or when applying the DietPi update multiple times during beta phase and such.

@MichaIng
Copy link
Owner Author

# Pi-hole install
[ INFO ] DietPi-Software | Whitelisting "freegeoip.app", which is used by dietpi-banner and dietpi-vpn to obtain your public IP and location...
  [i] Adding freegeoip.app to the whitelist...
  [✓] Reloading DNS lists
...
# DietPi update
[ INFO ] DietPi-Patch | Whitelisting "freegeoip.app" in Pi-hole, which is used by dietpi-banner and dietpi-vpn to obtain your public IP and location...
  [i] freegeoip.app already exists in whitelist, no need to add!

Pi-hole whitelist

Very nice, I'm gonna merge it.

@MichaIng MichaIng merged commit 7573de5 into dev May 22, 2021
@MichaIng MichaIng deleted the geoip branch May 22, 2021 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants