87 lines
2.2 KiB
Markdown
87 lines
2.2 KiB
Markdown
# Sophos AP DNS Issue - Session Reference
|
|
|
|
## Problem
|
|
Sophos AP100/AP50 (OpenWrt-based) at 192.168.178.208/209 were broadcasting Cloudflare DNS (1.1.1.1) to all network clients, bypassing Pi-hole at 192.168.178.35.
|
|
|
|
## Investigation
|
|
|
|
### Nmap Scan Results
|
|
```
|
|
nmap -p 53 -sV 192.168.178.208 192.168.178.209
|
|
|
|
192.168.178.208: port 53/tcp open domain Cloudflare public DNS
|
|
192.168.178.209: port 53/tcp open domain Cloudflare public DNS
|
|
```
|
|
|
|
### Network Scans
|
|
```
|
|
nmap -sn 192.168.178.0/24
|
|
→ Found 15 hosts including 192.168.178.208 and 192.168.178.209
|
|
```
|
|
|
|
### Pi-hole Confirmation
|
|
```
|
|
nmap -p 53 -sV 192.168.178.35
|
|
→ port 53/tcp open domain dnsmasq 2.93 (pi-hole)
|
|
```
|
|
|
|
### Current DNS Configuration
|
|
- /etc/resolv.conf shows: nameserver 192.168.178.35 (Pi-hole)
|
|
- But APs override with Cloudflare via DHCP
|
|
|
|
## APs on Network
|
|
| IP | Model | Firmware | DNS Served |
|
|
|----|-------|----------|------------|
|
|
| 192.168.178.208 | Sophos AP100/AP50 | OpenWrt | Cloudflare 1.1.1.1 |
|
|
| 192.168.178.209 | Sophos AP100/AP50 | OpenWrt | Cloudflare 1.1.1.1 |
|
|
|
|
## Gateway
|
|
- 192.168.178.1 FRITZ!Box (NSD DNS)
|
|
|
|
## Resolution Steps (Skill: openwrt-ap-dns-pihole)
|
|
|
|
### Method 1: Web Interface
|
|
1. Access AP at http://192.168.178.208 or .209
|
|
2. Navigate to Network → DHCP and DNS
|
|
3. Set custom DNS server: 192.168.178.35
|
|
4. Disable automatic DNS forwarding
|
|
5. Save and reboot
|
|
|
|
### Method 2: CLI (SSH)
|
|
```bash
|
|
ssh admin@192.168.178.208
|
|
uci set dhcp.@dnsmasq[0].resolv='/etc/resolv.conf'
|
|
uci set dhcp.@dnsmasq[0].localservice='0'
|
|
uci commit
|
|
wifi reload
|
|
# Or set static DNS
|
|
uci set network.lan.dns='192.168.178.35'
|
|
uci commit
|
|
/etc/init.d/dnsmasq restart
|
|
```
|
|
|
|
### Method 3: Disable AP DNS Entirely
|
|
```bash
|
|
uci set dhcp.@dnsmasq[0].authoritative='0'
|
|
uci commit
|
|
/etc/init.d/dnsmasq stop
|
|
/etc/init.d/dnsmasq disable
|
|
```
|
|
|
|
## Verification
|
|
```bash
|
|
# Check DNS
|
|
cat /etc/resolv.conf # Should show 192.168.178.35
|
|
|
|
# Test resolution
|
|
nslookup google.com 192.168.178.35
|
|
|
|
# Confirm APs no longer override
|
|
dig @192.168.178.208 google.com # Should not return 1.1.1.1
|
|
```
|
|
|
|
## Related
|
|
- Skill: openwrt-ap-dns-pihole (newly created)
|
|
- Pi-hole: 192.168.178.35
|
|
- TouchDesigner lamp control via fridas_rings.toe
|
|
- WLED lamp control via playbot |