pmaports/main/postmarketos-config-nftables/rules/10_dhcp.nft
Markus Göllnitz fef1a94b57
main/postmarketos-config-nftables: allow Wi-Fi Display traffic (MR 4391)
The port 7236 for TCP is registered with IANA by the
Wi-Fi Alliance for use for the Wi-Fi Display Protocol,
a.k.a. Miracast.

To establish the connection, the local DHCP server has to
be allowed to respond to requests on peer-to-peer Wi-Fi
networks.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
[ci:skip-build]: already built successfully in CI
2023-09-14 20:40:33 +02:00

15 lines
440 B
Text

#!/usr/sbin/nft -f
table inet filter {
chain input {
# Allow DHCP server on usb*
iifname "usb*" udp dport bootps accept comment "accept incoming DHCP on usb*"
# Allow DHCP server on wlan* for hotspot
iifname "wlan*" udp dport bootps accept comment "accept incoming DHCP on wlan*"
# Allow DHCP server on p2p-wlan* for WiFi Display
iifname "p2p-wlan*" udp dport bootps accept comment "accept incoming DHCP on p2p-wlan*"
}
}