pmaports/main/postmarketos-config-nftables/rules/51_hotspot.nft
Clayton Craft 45ea9bec29
postmarketos-config-nftables: add forward rule to accept traffic on wlan (MR 2622)
This seems to fix the last missing piece to getting the hotspot stuff
working, at least when it's set up with networkmanager (I haven't tested
other methods, but assume this rule is still needed there too...)

fixes #1198
2021-10-22 18:35:23 +03:00

15 lines
326 B
Text

#!/usr/sbin/nft -f
table inet filter {
chain input {
# allow DNS from wlan*
iifname "wlan*" tcp dport 53 accept comment "Accept DNS over TCP on wlan*"
iifname "wlan*" udp dport 53 accept comment "Accept DNS over UDP on wlan*"
}
chain forward {
iifname "wlan*" accept comment "Accept forwarding from wlan*"
}
}