We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04d4b3 commit 8d193dfCopy full SHA for 8d193df
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsFirewallRuleTestCase.inc
@@ -993,4 +993,21 @@ class APIModelsFirewallRuleTestCase extends TestCase {
993
$this->assert_equals($rule->updated_by->value, "$client->username@$client->ip_address (API)");
994
}
995
996
+
997
+ /**
998
+ * Checks that we can create a floating firewall rule with the 'any' interface
999
+ */
1000
+ public function test_floating_rule_with_any_interface(): void {
1001
+ # Create a firewall rule to test with
1002
+ $rule = new FirewallRule(
1003
+ type: 'pass',
1004
+ interface: ['any'],
1005
+ ipprotocol: 'inet',
1006
+ protocol: 'tcp',
1007
+ source: 'any',
1008
+ destination: 'any',
1009
+ floating: true,
1010
+ );
1011
+ $rule->validate();
1012
+ }
1013
0 commit comments