|
133 | 133 | DESC
|
134 | 134 | },
|
135 | 135 | name: {
|
136 |
| - type: 'Pattern[/(^\d+(?:[ \t]\S+)+$)/]', |
| 136 | + type: 'Pattern[/(^\d+(?:[ \t-]\S+)+$)/]', |
137 | 137 | behaviour: :namevar,
|
138 | 138 | desc: <<-DESC
|
139 | 139 | The canonical name of the rule. This name is also used for ordering
|
|
147 | 147 | DESC
|
148 | 148 | },
|
149 | 149 | line: {
|
150 |
| - type: 'Optional[String]', |
| 150 | + type: 'Optional[String[1]]', |
151 | 151 | behaviour: :read_only,
|
152 | 152 | desc: <<-DESC
|
153 | 153 | A read only attribute containing the full rule, used when deleting only.
|
|
200 | 200 | DESC
|
201 | 201 | },
|
202 | 202 | source: {
|
203 |
| - type: 'Optional[Pattern[/^(?:!\s)?\d+\.\d+\.\d+\.\d+(?:\/\d+)?$/]]', |
| 203 | + type: 'Optional[String[1]]', |
204 | 204 | desc: <<-DESC
|
205 | 205 | The source address. For example:
|
206 | 206 |
|
|
214 | 214 | DESC
|
215 | 215 | },
|
216 | 216 | destination: {
|
217 |
| - type: 'Optional[Pattern[/^(?:!\s)?\d+\.\d+\.\d+\.\d+(?:\/\d+)?$/]]', |
| 217 | + type: 'Optional[String[1]]', |
218 | 218 | desc: <<-DESC
|
219 | 219 | The destination address to match. For example:
|
220 | 220 |
|
|
624 | 624 | DESC
|
625 | 625 | },
|
626 | 626 | ctorigsrc: {
|
627 |
| - type: 'Optional[Pattern[/^(?:!\s)?\d+\.\d+\.\d+\.\d+(?:\/\d+)?$/]]', |
| 627 | + type: 'Optional[String[1]]', |
628 | 628 | desc: <<-DESC
|
629 | 629 | The original source address using the conntrack module. For example:
|
630 | 630 |
|
|
640 | 640 | ctorigdst: {
|
641 | 641 | type: 'Optional[Pattern[/^(?:!\s)?\d+\.\d+\.\d+\.\d+(?:\/\d+)?$/]]',
|
642 | 642 | desc: <<-DESC
|
643 |
| - The original destination address using the conntrack module. For example: |
| 643 | + type: 'Optional[String[1]]', |
644 | 644 |
|
645 | 645 | ctorigdst => '192.168.2.0/24'
|
646 | 646 |
|
|
652 | 652 | DESC
|
653 | 653 | },
|
654 | 654 | ctreplsrc: {
|
655 |
| - type: 'Optional[Pattern[/^(?:!\s)?\d+\.\d+\.\d+\.\d+(?:\/\d+)?$/]]', |
| 655 | + type: 'Optional[String[1]]', |
656 | 656 | desc: <<-DESC
|
657 | 657 | The reply source address using the conntrack module. For example:
|
658 | 658 |
|
|
666 | 666 | DESC
|
667 | 667 | },
|
668 | 668 | ctrepldst: {
|
669 |
| - type: 'Optional[Pattern[/^(?:!\s)?\d+\.\d+\.\d+\.\d+(?:\/\d+)?$/]]', |
| 669 | + type: 'Optional[String[1]]', |
670 | 670 | desc: <<-DESC
|
671 | 671 | The reply destination address using the conntrack module. For example:
|
672 | 672 |
|
|
1163 | 1163 | DESC
|
1164 | 1164 | },
|
1165 | 1165 | todest: {
|
1166 |
| - type: 'Optional[Pattern[/^\d+\.\d+\.\d+\.\d+(?:-\d+\.\d+\.\d+\.\d+)?(?:\:\d+(?:-\d+(?:\/\d+)?)?)?$/]]', |
| 1166 | + type: 'Optional[String[1]]', |
1167 | 1167 | desc: <<-DESC
|
1168 | 1168 | When using jump => "DNAT" you can specify the new destination address using this paramter.
|
1169 | 1169 | Can specify a single new destination IP address or an inclusive range of IP addresses.
|
|
1172 | 1172 | DESC
|
1173 | 1173 | },
|
1174 | 1174 | tosource: {
|
1175 |
| - type: 'Optional[Pattern[/^\d+\.\d+\.\d+\.\d+(?:-\d+\.\d+\.\d+\.\d+)?(?:\:\d+(?:-\d+)?)?$/]]', |
| 1175 | + type: 'Optional[String[1]]', |
1176 | 1176 | desc: <<-DESC
|
1177 | 1177 | When using jump => "SNAT" you can specify the new source address using this paramter.
|
1178 | 1178 | Can specify a single new destination IP address or an inclusive range of IP addresses.
|
|
0 commit comments