mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
firewall: quote a/n protocol; closes #6880
This commit is contained in:
parent
f63fd66472
commit
f8ff476cff
@ -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, -> (,)',
|
||||
|
||||
@ -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 {","}',
|
||||
|
||||
@ -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 ',
|
||||
|
||||
@ -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 ',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user