aboutsummaryrefslogtreecommitdiffstats
path: root/community/waydroid/51_waydroid.nft
diff options
context:
space:
mode:
authorSughosha <sughosha@e.email>2021-10-25 14:23:39 +0000
committerBart Ribbers <bribbers@disroot.org>2021-10-26 09:08:47 +0200
commit9de74a8e981ed821b31bf53b093b08a899597048 (patch)
tree9ce10fe286c0f8e09da07b3792131d744e8c7a1c /community/waydroid/51_waydroid.nft
parent81e15accf54888733b46d04c71880be39c775df8 (diff)
downloadaports-9de74a8e981ed821b31bf53b093b08a899597048.tar.gz
aports-9de74a8e981ed821b31bf53b093b08a899597048.tar.bz2
aports-9de74a8e981ed821b31bf53b093b08a899597048.tar.xz
community/waydroid: add nftables subpackages
Diffstat (limited to 'community/waydroid/51_waydroid.nft')
-rw-r--r--community/waydroid/51_waydroid.nft11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/waydroid/51_waydroid.nft b/community/waydroid/51_waydroid.nft
new file mode 100644
index 0000000000..69fd45e5a2
--- /dev/null
+++ b/community/waydroid/51_waydroid.nft
@@ -0,0 +1,11 @@
+#!/usr/sbin/nft -f
+table inet filter {
+ chain input {
+ iifname "waydroid0" accept comment "Allow incoming network traffic from WayDroid"
+ }
+ chain forward {
+ iifname "waydroid0" accept comment "Allow outgoing network traffic from WayDroid"
+ ct state {established, related} counter accept comment "accept established connections"
+ }
+}
+