firewall: quote a/n protocol; closes #6880

This commit is contained in:
Franco Fichtner 2023-09-25 10:13:19 +02:00
parent f63fd66472
commit f8ff476cff
4 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class DNatRule extends Rule
'nat' => 'parseStaticText,nat ',
'interface' => 'parseInterface',
'ipprotocol' => 'parsePlain',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp}|a/n:"a/n",proto ',
'interface.from' => 'parseInterface, from (,:network)',
'from' => 'parsePlainCurly,to ',
'interface.to' => 'parseInterface, -> (,)',

View File

@ -46,7 +46,7 @@ class FilterRule extends Rule
'gateway' => 'parseRoute',
'reply' => 'parsePlain',
'ipprotocol' => 'parsePlain',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp}|a/n:"a/n",proto ',
'from' => 'parsePlainCurly,from ',
'from_port' => 'parsePlainCurly, port ',
'os' => 'parsePlain, os {","}',

View File

@ -42,7 +42,7 @@ class ForwardRule extends Rule
'log' => 'parseBool,log ',
'interface' => 'parseInterface',
'ipprotocol' => 'parsePlain',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp}|a/n:"a/n",proto ',
'from' => 'parsePlainCurly,from ',
'from_port' => 'parsePlainCurly, port ',
'to' => 'parsePlainCurly,to ',
@ -59,7 +59,7 @@ class ForwardRule extends Rule
'nat' => 'parseStaticText,nat ',
'interface' => 'parseInterface',
'ipprotocol' => 'parsePlain',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp}|a/n:"a/n",proto ',
'interface.from' => 'parseInterface, from (,:network)',
'target.to' => 'parsePlainCurly,to ',
'localport' => 'parsePlainCurly,port ',

View File

@ -40,7 +40,7 @@ class SNatRule extends Rule
'log' => 'parseBool,log',
'interface' => 'parseInterface',
'ipprotocol' => 'parsePlain',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp}|a/n:"a/n",proto ',
'from' => 'parsePlain,from ',
'sourceport' => 'parsePlain, port ',
'to' => 'parsePlain,to ',