In my home network I have 2 Raspberry PI devices, where one of them is my VPN gateway. Some of the hosts are the 2nd Raspberry PI as default gateway. Is it possible to add DHCP option where I can set different gateway per host.
This way I have most of my network devices routed through my regular firewall and some devices that I choose are routed through VPN gateway.
For now I have manually changed /etc/dnsmasq.d/02-pihole-dhcp.conf and configured 2 router options with different tags:
dhcp-option=tag:tag0,option:router,10.X.X.1
dhcp-option=tag:tag1,option:router,10.X.X.2
as well as changed /etc/dnsmasq.d/04-pihole-static-dhcp.conf file
dhcp-host=D0:Y::Y:Y:Y,10.X.X.98,unknown,set:tag1