Hi All,
When turning on the DHCP function, I get a diagnosis of:
FTL failed to start due to process is missing required capability NET_RAW
I know I could add this in my cap_add, but I'm not quite sure why I require this capability, and if I'd want to?
Github says this:
CAP_NET_RAW: use raw and packet sockets (needed for handling DHCPv6 requests, and verifying that an IP is not in use before leasing it)
I don't think I've enabled any Ipv6 unless it's on by default, but, all tutorials/guides for dhcp didn't require this cap. Here is my compose file:
pihole:
container_name: pihole
image: pihole/pihole:latest
networks:
pihole_network:
ipv4_address: '192.168.50.20'
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "80:80/tcp"
- "443:443/tcp"
- "80:80/tcp"
environment:
TZ: 'America/Chicago'
WEBPASSWORD: '*********'
# Volumes store your data between container upgrades
volumes:
- /home/svon/podman/pihole/etc-pihole:/etc/pihole
- /home/svon/podman/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
networks:
pihole_network:
driver: macvlan
driver_opts:
parent: enp7s0
ipam:
config:
- subnet: 192.168.50.0/24
gateway: 192.168.50.1
Am I missing something? Thanks
