# Trying to exclude client on pi-hole using 04-bypass.conf

**URL:** <https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038>\
**Category:** Help\
**Created:** [February 8, 2020, 2:26pm UTC](https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038 "2020-02-08T14:26:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flickojo](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/flickojo/32/12012_2.png) [@flickojo](https://discourse.pi-hole.net/u/flickojo)\
**Post date:** [February 8, 2020, 2:26pm UTC](https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038/1 "2020-02-08T14:26:40Z")

</div>

#### Please follow the below template, it will help us to help you!

## Expected Behaviour:

A newbie question here..  
Some people on my network do not value privacy as much as I do. To keep them happy, I decided to use 04-bypass.conf to send them directly to googleDNs.

## Actual Behaviour:

After adding the line dhcp-host=MA:CA:DD:R:ES:SS,set:googlesdns1 with the MAC address of the client I want excluded and restarting the DNS resolver, I still see active blocking on the admin page for the device in question.

## Debug Token:

9loktg1hzx

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 8, 2020, 5:40pm UTC](https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038/2 "2020-02-08T17:40:07Z")

</div>

Per client blocking is a feature built in to version 5.0. If you'd like to give that a try, see [Announcing a Beta test of Pi-hole 5.0!](https://discourse.pi-hole.net/t/announcing-a-beta-test-of-pi-hole-5-0/27059)

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [February 8, 2020, 5:45pm UTC](https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038/3 "2020-02-08T17:45:14Z")

</div>

> [@flickojo](#):
>
> 04-bypass.conf

What are the contents of this file?

`cat /etc/dnsmasq.d/04-bypass.conf`

---

<div class="post-metadata">

**Author:** ![flickojo](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/flickojo/32/12012_2.png) [@flickojo](https://discourse.pi-hole.net/u/flickojo)\
**Post date:** [February 8, 2020, 6:52pm UTC](https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038/4 "2020-02-08T18:52:03Z")

</div>

```plaintext
## The contents here bypass pihole by mac address

## This will go straight to Googles DNS Servers.
dhcp-option=tag:googlesdns1,6,8.8.8.8
dhcp-option=tag:googlesdns2,6,8.8.4.4
dhcp-host=[i put here the mac address of the device in ques],set:googledns1
## This will go straight to Opendns Servers.
dhcp-option=tag:opendns1,6,208.67.222.220
dhcp-option=tag:opendns2,6,208.67.222.222
## OpenDNS FamilyShield
dhcp-option=tag:opendns3,6,208.67.222.123
dhcp-option=tag:opendns4,6,208.67.220.123

## Level3 DNS
dhcp-option=tag:Level3DNS1,6,4.2.2.1
dhcp-option=tag:Level3DNS2,6,4.2.2.2

## Comodo Secure DNS
dhcp-option=tag:ComodoSecureDNS,6,8.26.56.26
dhcp-option=tag:ComodoSecureDNS,6,8.20.247.20

## Norton
## P1 - malware, phishing schemes, and scams.
dhcp-option=tag:norton1,6,199.85.126.10
dhcp-option=tag:norton2,6,199.85.127.10
## P2 - Pornography
dhcp-option=tag:norton3,6,199.85.126.20
dhcp-option=tag:norton4,6,199.85.127.20
## P3 - Security + Pornography + Other
dhcp-option=tag:norton5,6,199.85.126.30
dhcp-option=tag:norton6,6,199.85.127.30

########################################################################

## Instructions
## First set your tag, and dns server.
## dhcp-option=tag:YOURTAGHERE,6,IPADDRESSOFDNSSERVER
## You then simply need to replace MA:CA:DD:R:ES:SS
## I have set up the standard DNS servertags above.
## Below are examples of how to set a mac address to bypass pihole.

## Your Device that goes to Google DNS
#dhcp-host=MA:CA:DD:R:ES:SS,set:googlesdns1

## Your Device that goes to OpenDNS
#dhcp-host=MA:CA:DD:R:ES:SS,set:opendns1

## Your Device that goes to custom DNS Server
#dhcp-host=MA:CA:DD:R:ES:SS,set:YOURTAGHERE

```

---

<div class="post-metadata">

**Author:** ![flickojo](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/flickojo/32/12012_2.png) [@flickojo](https://discourse.pi-hole.net/u/flickojo)\
**Post date:** [February 8, 2020, 7:11pm UTC](https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038/5 "2020-02-08T19:11:47Z")

</div>

I am on it...I should have a look at the admin page

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [February 29, 2020, 7:11pm UTC](https://discourse.pi-hole.net/t/trying-to-exclude-client-on-pi-hole-using-04-bypass-conf/28038/6 "2020-02-29T19:11:50Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
