firewall: allow also related traffic

This include ICMP error messages for allowed traffic.

Fixes QubesOS/qubes-issues#3406
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-28 05:27:24 +01:00
parent 3a83623647
commit c324b16252
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 3 additions and 3 deletions

View File

@ -556,7 +556,7 @@ class NftablesWorker(FirewallWorker):
' chain forward {{\n'
' type filter hook forward priority 0;\n'
' policy drop;\n'
' ct state established accept\n'
' ct state established,related accept\n'
' }}\n'
'}}\n'
)

View File

@ -430,14 +430,14 @@ class TestNftablesWorker(TestCase):
' chain forward {\n'
' type filter hook forward priority 0;\n'
' policy drop;\n'
' ct state established accept\n'
' ct state established,related accept\n'
' }\n'
'}\n'
'table ip6 qubes-firewall {\n'
' chain forward {\n'
' type filter hook forward priority 0;\n'
' policy drop;\n'
' ct state established accept\n'
' ct state established,related accept\n'
' }\n'
'}\n'
])