For the virtual machine in VirtualBox, my Pihole server has two adapters set. One is a NAT. The other is Host-only adapter (with no DHCP as I want Pihole to manage DHCP).
How can I bind Pihole's DHCP server with the given Host-Only adapter interface?
For some reason, nothing is able to reach the Internet. I'm definitely getting a remote IP resolved.
The interesting thing is if I went into the network manager GUI and set the method to 'Shared to other computers,' the client would get an IP address offered to it and the client could go online. But since that uses dnsmasq as PiHole does, the two would conflict. So, that wouldn't work.
Also, I changed the client's DNS from manual to auto and it got 192.168.2.1. And I am able to get this now (it's also how I got the above result too):
So, it seems like I can get a response from the PiHole in terms of what's black listed now. I just can't seem to ping any remote servers like google.ca as shown:
But I am able to resolve to an IP address now. It's just that the ping stays frozen. No ttl. Nothing.
No duh it was IP forwarding; considering I want to turn this VM into a router for my other client machines. Now after 3 days or more trying to figure this out, I feel like such a moron.
And to make those IPtables persistent, gotta Install IPtables Persistent by running apt install iptables-persistent