VR: add '-m <protocol>' for tcp or udp protocol (#6188)

This commit is contained in:
Wei Zhou 2022-04-06 05:16:12 +02:00 committed by GitHub
parent 66a6671e0b
commit 47454eca7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ class CsAcl(CsDataBag):
" -A FIREWALL_%s" % self.ip +
" -s %s " % cidr +
" -p %s " % rule['protocol'] +
" -m %s " % rule['protocol'] +
" %s -j %s" % (rnge, self.rule['action'])])
sflag = False