Eigene Skills vom MacBook (9 Skills)

This commit is contained in:
2026-10-27 01:20:31 +01:00
commit 3b03f4f525
25 changed files with 2231 additions and 0 deletions
@@ -0,0 +1,122 @@
---
name: openwrt-ap-dns-pihole
description: Configure OpenWrt APs to use Pi-hole DNS.
version: 1.0.0
author: Robert Rapp
license: MIT
platforms: [macos, linux]
metadata:
hermes:
tags: [openwrt, ap, dns, pi-hole, sophos, network]
related_skills: []
---
# OpenWrt AP DNS Configuration for Pi-hole
## Overview
When OpenWrt-based Access Points (AP100, AP50, or other OpenWrt firmware) are deployed on a network with Pi-hole, they may advertise their own DNS servers (often Cloudflare 1.1.1.1) via DHCP, causing clients to bypass Pi-hole filtering.
## Problem Identified
Sophos AP100/AP50 (and other OpenWrt-based APs) at 192.168.178.208/209 were observed serving **Cloudflare DNS (1.1.1.1)** to all connected devices, bypassing the local Pi-hole at 192.168.178.35.
## Solution: Configure APs to Use Pi-hole
### Method 1: Web Interface (Recommended)
1. **Access AP web interface**:
- AP1: `http://192.168.178.208`
- AP2: `http://192.168.178.209`
2. **Navigate to DHCP/DNS settings**:
- Network → DHCP and DNS
- Or: Services → DHCP Server
3. **Set custom DNS servers**:
- Enter Pi-hole IP: `192.168.178.35`
- Disable automatic DNS forwarding
- Save and apply settings
4. **Reboot AP** if prompted.
### Method 2: CLI (SSH)
```bash
# SSH into AP
ssh admin@192.168.178.208
# Disable DNS forwarding and set Pi-hole as upstream
uci set dhcp.@dnsmasq[0].resolv='/etc/resolv.conf'
uci set dhcp.@dnsmasq[0].localservice='0'
uci commit
wifi reload
# Or set static DNS directly
uci set network.lan.dns='192.168.178.35'
uci commit
/etc/init.d/dnsmasq restart
```
### Method 3: Disable AP DNS Entirely
If Pi-hole should be the sole DNS server:
```bash
# Disable dnsmasq DNS service
uci set dhcp.@dnsmasq[0].authoritative='0'
uci commit
/etc/init.d/dnsmasq stop
/etc/init.d/dnsmasq disable
```
## Verification
After configuration, verify DNS resolution:
```bash
# Check current DNS
cat /etc/resolv.conf
# Should show nameserver 192.168.178.35 (Pi-hole)
# 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
```
## Network Context
- **Pi-hole**: 192.168.178.35 (dnsmasq 2.93)
- **Sophos APs**: 192.168.178.208, 192.168.178.209 (OpenWrt firmware)
- **FRITZ!Box Gateway**: 192.168.178.1 (NSD DNS)
- **Subnet**: 192.168.178.0/24
## Related Skills
- touchdesigner-lampe: Lamp control via TouchDesigner sACN
- lichtzentrale: WLED control via playbot
- hermes-agent: Hermes Agent configuration
## References
- references/sophos-ap-dns-issue.md: Session-specific detail on Sophos AP DNS issue and resolution
## Troubleshooting
### AP unreachable after DNS change
1. Verify AP IP address is correct
2. Check that AP is on same VLAN/subnet
3. Restart AP web interface/service
### DNS still bypassing Pi-hole
1. Clear DNS cache on clients: `sudo systemd-resolve --flush-caches`
2. Reconnect clients to WiFi
3. Verify AP settings were saved and applied
### AP web interface login fails
1. Use default credentials (check device documentation)
2. Reset to factory defaults if needed
```
---
*Last updated: OpenWrt AP DNS configuration for Pi-hole integration*
@@ -0,0 +1,87 @@
# 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