main/postmarketos-config-nftables: subpackage docker (MR 2629)
This commit is contained in:
parent
54414bc01e
commit
d60ff7eb32
2 changed files with 23 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
||||
pkgname=postmarketos-config-nftables
|
||||
pkgver=0.7
|
||||
pkgver=0.8
|
||||
pkgrel=0
|
||||
pkgdesc="nftables firewall configuration for postmarketOS"
|
||||
url="https://gitlab.com/postmarketos"
|
||||
|
@ -11,6 +11,7 @@ subpackages="
|
|||
$pkgname-openusb:openusb
|
||||
$pkgname-log:log
|
||||
$pkgname-anbox:anbox
|
||||
$pkgname-docker:docker
|
||||
$pkgname-networkmanager:networkmanager
|
||||
$pkgname-vncserver:vncserver
|
||||
"
|
||||
|
@ -20,6 +21,7 @@ source="
|
|||
rules/10_dhcp.nft
|
||||
rules/50_ssh.nft
|
||||
rules/51_anbox.nft
|
||||
rules/51_docker.nft
|
||||
rules/51_hotspot.nft
|
||||
rules/51_usb_inet.nft
|
||||
rules/50_vncserver.nft
|
||||
|
@ -59,6 +61,14 @@ anbox() {
|
|||
amove etc/nftables.d/51_anbox.nft
|
||||
}
|
||||
|
||||
docker() {
|
||||
depends="$pkgname"
|
||||
description="Enables networking for Docker"
|
||||
install_if="$pkgname docker"
|
||||
|
||||
amove etc/nftables.d/51_docker.nft
|
||||
}
|
||||
|
||||
vncserver() {
|
||||
depends="$pkgname"
|
||||
description="Enables networking for VNC Server"
|
||||
|
@ -81,6 +91,7 @@ sha512sums="
|
|||
d5a7c7fc47924acfafee42d731e6a0109d83af6278053128deecbf3cf40e37447cb649360ee9ebddd2a5ea276888314b63ce7ef828708b5bf7dd1bface7fbc62 10_dhcp.nft
|
||||
6b0d0c7c3368dde1ad61d26a0c2e13008f16d5bedaf11fa4a3511b49675505cbbdda8bf8ff158194846b197108f76bdfd66d40a2afb9f4d25c79b02acf5659b7 50_ssh.nft
|
||||
8322a8a5a5b1e98e1f44e2091b8b3a06db1e8309ebba5b8b6abe9d6fbb009dffb248af55e631f06f01bbced98b23c205462de73cd354b116dbaa7b6c72746bfd 51_anbox.nft
|
||||
76ac156ee80f895ab4f574f70f4ee9f960dfd23a3381bbbf7c744bea919b98f69e91e2eaa10425dfeaf5dbe77b745ec1dd82cb94953835873baffd9e5d89e166 51_docker.nft
|
||||
1ce70bb71c9008b6c727a2c26d11467be3b5a0cb9815a8bb0790150c7958457b22b110e35ba974973b9579d44bd14219985d85597c954b5fa8cf77bf206c959b 51_hotspot.nft
|
||||
bceb1a12a9de044daa3a4ba647b0d69b257881151a912fc350d6a00fdf0c0903b51fb58c56cfc73e9a75f529bac841d41d466e0f210b1f516e124e69cbfd1feb 51_usb_inet.nft
|
||||
dfe0c8f7e86f187a9a69a35f1f4e9125dca385ad372777aab3d820886b26061214f3dc3f0d012690e981e0dec9bcacf154c69eab56dfa549d132555663b1f8e9 50_vncserver.nft
|
||||
|
|
11
main/postmarketos-config-nftables/rules/51_docker.nft
Normal file
11
main/postmarketos-config-nftables/rules/51_docker.nft
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/sbin/nft -f
|
||||
table inet filter {
|
||||
chain input {
|
||||
iifname "docker*" accept comment "Allow incoming network traffic from Docker"
|
||||
}
|
||||
|
||||
chain forward {
|
||||
iifname "docker*" accept comment "Allow outgoing network traffic from Docker"
|
||||
ct state {established, related} counter accept comment "accept established connections"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue