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

Will this let me make gwifi set DNS for dhcp clients to its' custom DNS? #33

Closed
jherman opened this issue Aug 13, 2018 · 12 comments
Closed

Comments

@jherman
Copy link

jherman commented Aug 13, 2018

Not so much an issue, as a general question. I'm using pihole software to filter ads. With the way gwifi is today, I added pihole's IP as the first DNS entry. Apparently gwifi still hands out 192.168.86.1 as the DNS to DHCP clients instead of pihole's IP. Is this something that can be fixed if I root it?

[EDIT]
I should note that, yes I do know that pihole will still work, however, I will only see one IP (that of gwifi) in the dashboard, instead of seeing all individual client IP's that ask for DNS requests.

@Geczy
Copy link

Geczy commented Dec 26, 2018

EDIT 2/4/2019:

These steps have now been automated on my fork https://github.com/Geczy/galeforce


#9 # Advertise Pi-hole’s IP address via dnsmasq in the router

This is the preferred method as stated by pi-hole's wiki

It's pretty simple, follow my guide below. This essentially follows the setup instructions from here, method 2. The Gwifi app disables configuring dnsmasq, but once you're rooted you can modify it manually through ssh.

Features

  • Maintains the Gwifi mesh network
  • Per-host tracking on Pi-hole
  • Gwifi app shows clients
  • Gwifi app is the primary for port forwarding and managing the wifi
  • The ability to resolve hostnames on the LAN
  • Ad blocking/network monitoring provided by Pi-hole

Requirements

  • Gwifi should be rooted
    To learn how to root, follow the readme on my fork, it's the most updated and comprehensive one
  • Gwifi should not be in bridge mode
  • Gwifi should be the primary dhcp server
  • The raspberry pi should be assigned a static IP through the Gwifi app
  • Do not setup upstream dns servers on pi-hole
  • Do not enable dhcp server on pi-hole

Guide

ssh root@192.168.86.1 # login to the router as root
cp /etc/init/dnsmasq.conf /usr/local/galeforce/data # save a backup
vi /etc/init/dnsmasq.conf # modify the original 
## after making the modifications listed below:
sudo reboot # reboot AFTER mods 

Find each of these lines:

dhcp-option=${LAN_BRIDGE},6,${SETTING_BRIDGE_ADDRESS}
dhcp-option=${GUEST_BRIDGE},6,${SETTING_GUEST_BRIDGE_ADDRESS}
dhcp-option=${SETUP_LAN_BRIDGE},6,${SETTING_SETUP_LAN_ADDRESS}

Replace each line, where 192.168.86.XX is your raspberry pi's IP address

dhcp-option=${LAN_BRIDGE},6,192.168.86.XX
dhcp-option=${GUEST_BRIDGE},6,192.168.86.XX
dhcp-option=${SETUP_LAN_BRIDGE},6,192.168.86.XX

Screenshots

Pi-hole client list

image

Mesh works

image

Clients are shown

image

@americanslon
Copy link

americanslon commented May 8, 2019

Is there a way to get the device names set in GWIFI app (or hostnames) to show up instead of or in addition to IPs?

@Geczy
Copy link

Geczy commented May 8, 2019

yes

@americanslon
Copy link

How?

@americanslon
Copy link

@Geczy ping

@Geczy
Copy link

Geczy commented May 21, 2019

What I do is export it from my hosts file from gwifi, and import it to the ssh of pi manually. If you want to know which file let me know and I can check

@americanslon
Copy link

americanslon commented May 21, 2019

Thank you, if you could please @Geczy

Is this even still possible though - I have followed the instructions and my device doesn't start blinking orange after holding reset. So kind of a problem on step one...:/

Edit:

I got it to go into dev mode. Steps 3 and 4 in the readme should be reversed.
Hold the reset buttin, plug in the power and continue holding until the orange light.
Seems like the latest update removes ssh though so...

@Fahmula
Copy link

Fahmula commented Sep 8, 2019

Is this still a viable options to get Pihole working with GWifi?

@americanslon
Copy link

This with that latest gwifi update bricked my puck. This also seems like a dead project so I'd be careful.

@Fahmula
Copy link

Fahmula commented Sep 8, 2019

Thanks. I'll continue using the Pihole as the DHCP sever although it seems my PC stop showing up in GWifi.

@dltacube
Copy link

Thank you, if you could please @Geczy

Is this even still possible though - I have followed the instructions and my device doesn't start blinking orange after holding reset. So kind of a problem on step one...:/

Edit:

I got it to go into dev mode. Steps 3 and 4 in the readme should be reversed.
Hold the reset buttin, plug in the power and continue holding until the orange light.
Seems like the latest update removes ssh though so...

Strange because @Geczy just updated his post recently...Are you still able to get into ssh?

@d8ahazard
Copy link

So, this was closed....this is specifically why I looked for Galeforce. I want to use it to put my Gwifi behind Pfsense, but I sure as hell don't want to brick my whole network in the process. Any confirmation this works would be immensely appreciated.

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

7 participants