Skip to content

Commit 13b80a2

Browse files
Merge branch 'master' of github.com:jaredhendrickson13/pfsense-api into next_minor
2 parents 3d4e46d + 3734953 commit 13b80a2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/Certificate.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Certificate extends Model {
6666
$this->prv = new Base64Field(
6767
required: true,
6868
sensitive: true,
69-
validators: [new X509Validator(allow_prv: true, allow_ecprv: true)],
69+
validators: [new X509Validator(allow_prv: true, allow_ecprv: true, allow_rsa: true)],
7070
help_text: 'The X509 private key string.',
7171
);
7272

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/FirewallRule.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class FirewallRule extends Model {
3535
public StringField $descr;
3636
public BooleanField $disabled;
3737
public BooleanField $log;
38+
public StringField $tag;
3839
public StringField $statetype;
3940
public BooleanField $tcp_flags_any;
4041
public StringField $tcp_flags_out_of;
@@ -171,6 +172,11 @@ class FirewallRule extends Model {
171172
default: false,
172173
help_text: 'Enable or disable logging of traffic that matches this rule.',
173174
);
175+
$this->tag = new StringField(
176+
default: '',
177+
allow_empty: true,
178+
help_text: 'A packet matching this rule can be marked and this mark used to match on other NAT/filter rules. It is called ',
179+
);
174180
$this->statetype = new StringField(
175181
default: 'keep state',
176182
choices: ['keep state', 'sloppy state', 'synproxy state', 'none'],
@@ -200,7 +206,7 @@ class FirewallRule extends Model {
200206
help_text: 'The TCP flags that must be set for this rule to match.',
201207
);
202208
$this->gateway = new ForeignModelField(
203-
model_name: ['RoutingGateway', 'RoutingGatewayGroup'],
209+
model_name: ['RoutingGateway', 'RoutingGatewayGroup', 'RoutingGatewayStatus'],
204210
model_field: 'name',
205211
default: null,
206212
allow_null: true,

0 commit comments

Comments
 (0)