mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
Firewall/rule parsing, fix some spacings. for https://github.com/opnsense/core/issues/1326
This commit is contained in:
parent
70d795dfe2
commit
41e89fe13c
@ -47,7 +47,7 @@ class DNatRule extends Rule
|
||||
),
|
||||
'nat_rdr' => array(
|
||||
'disabled' => 'parseIsComment',
|
||||
'nat' => 'parseStaticText, rdr ',
|
||||
'nat' => 'parseStaticText,rdr ',
|
||||
'interface' => 'parseInterface',
|
||||
'to' => 'parsePlainCurly,from ',
|
||||
'external' => 'parsePlainCurly,to ',
|
||||
@ -56,7 +56,7 @@ class DNatRule extends Rule
|
||||
),
|
||||
'nat_refl' => array(
|
||||
'disabled' => 'parseIsComment',
|
||||
'nat' => 'parseStaticText, nat ',
|
||||
'nat' => 'parseStaticText,nat ',
|
||||
'interface' => 'parseInterface',
|
||||
'ipprotocol' => 'parsePlain',
|
||||
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',
|
||||
|
||||
@ -56,7 +56,7 @@ class ForwardRule extends Rule
|
||||
),
|
||||
'rdr_nat' => array(
|
||||
'disabled' => 'parseIsComment',
|
||||
'nat' => 'parseStaticText, nat ',
|
||||
'nat' => 'parseStaticText,nat ',
|
||||
'interface' => 'parseInterface',
|
||||
'ipprotocol' => 'parsePlain',
|
||||
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',
|
||||
|
||||
@ -38,7 +38,7 @@ class NptRule extends Rule
|
||||
private $procorder = array(
|
||||
'binat_1' => array(
|
||||
'disabled' => 'parseIsComment',
|
||||
'binat' => 'parseStaticText, binat ',
|
||||
'binat' => 'parseStaticText,binat ',
|
||||
'interface' => 'parseInterface',
|
||||
'from' => 'parsePlain,from , to any',
|
||||
'to' => 'parsePlain, -> ',
|
||||
@ -46,7 +46,7 @@ class NptRule extends Rule
|
||||
),
|
||||
'binat_2' => array(
|
||||
'disabled' => 'parseIsComment',
|
||||
'binat' => 'parseStaticText, binat ',
|
||||
'binat' => 'parseStaticText,binat ',
|
||||
'interface' => 'parseInterface',
|
||||
'to' => 'parsePlain,from , to any',
|
||||
'from' => 'parsePlain, -> ',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user