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

(cherry picked from commit 47454eca7d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Wei Zhou 2022-04-06 05:16:12 +02:00 committed by Rohit Yadav
parent 3f755b21dc
commit 7398915517
1 changed files with 1 additions and 0 deletions

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