-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from jaredhendrickson13/v110
v1.1.0 Fixes & Features
- Loading branch information
Showing
82 changed files
with
10,080 additions
and
1,351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
Below are versions that are currently supported and will receive security updates when available. | ||
|
||
| Version | Supported | | ||
| ------- | ------------------ | | ||
| 1.1.x | :white_check_mark: | | ||
| 1.0.x | :white_check_mark: | | ||
| 0.0.x | :x: | | ||
|
||
|
||
## Reporting a Vulnerability | ||
|
||
Should you discover a vulnerability in the pfSense-API code, please report the issue in one of the following ways: | ||
1) A pull request with code that fixes the discovered vulnerability | ||
2) A private email to either the project owner or the respective code owner | ||
3) As a last resort, you may open a public issue on the repository | ||
|
||
Please note this is an independent and open-source project and no bug bounty or reward can be granted. |
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
pfSense-pkg-API/files/etc/inc/api/endpoints/APIFirewallApply.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIFirewallApply extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/firewall/apply"; | ||
} | ||
|
||
protected function post() { | ||
return (new APIFirewallApplyCreate())->call(); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
pfSense-pkg-API/files/etc/inc/api/endpoints/APIFirewallNATOneToOne.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIFirewallNATOneToOne extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/firewall/nat/one_to_one"; | ||
} | ||
|
||
protected function get() { | ||
return (new APIFirewallNATOneToOneRead())->call(); | ||
} | ||
|
||
protected function post() { | ||
return (new APIFirewallNATOneToOneCreate())->call(); | ||
} | ||
|
||
protected function put() { | ||
return (new APIFirewallNATOneToOneUpdate())->call(); | ||
} | ||
|
||
protected function delete() { | ||
return (new APIFirewallNATOneToOneDelete())->call(); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
pfSense-pkg-API/files/etc/inc/api/endpoints/APIFirewallNATOutbound.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIFirewallNATOutbound extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/firewall/nat/outbound"; | ||
} | ||
|
||
protected function get() { | ||
return (new APIFirewallNATOutboundRead())->call(); | ||
} | ||
|
||
protected function put() { | ||
return (new APIFirewallNATOutboundUpdate())->call(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
pfSense-pkg-API/files/etc/inc/api/endpoints/APIFirewallNATOutboundMapping.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIFirewallNATOutboundMapping extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/firewall/nat/outbound/mapping"; | ||
} | ||
|
||
protected function get() { | ||
return (new APIFirewallNATOutboundMappingRead())->call(); | ||
} | ||
|
||
protected function post() { | ||
return (new APIFirewallNATOutboundMappingCreate())->call(); | ||
} | ||
|
||
protected function put() { | ||
return (new APIFirewallNATOutboundMappingUpdate())->call(); | ||
} | ||
|
||
protected function delete() { | ||
return (new APIFirewallNATOutboundMappingDelete())->call(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pfSense-pkg-API/files/etc/inc/api/endpoints/APIInterfaceApply.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIInterfaceApply extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/interface/apply"; | ||
} | ||
|
||
protected function post() { | ||
return (new APIInterfaceApplyCreate())->call(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
pfSense-pkg-API/files/etc/inc/api/endpoints/APIRoutingApply.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIRoutingApply extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/routing/apply"; | ||
} | ||
|
||
protected function post() { | ||
return (new APIRoutingApplyCreate())->call(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pfSense-pkg-API/files/etc/inc/api/endpoints/APIServicesDHCPdLease.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIServicesDHCPdLease extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/services/dhcpd/lease"; | ||
} | ||
|
||
protected function get() { | ||
return (new APIServicesDHCPdLeaseRead())->call(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
pfSense-pkg-API/files/etc/inc/api/endpoints/APIStatusGateway.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIStatusGateway extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/status/gateway"; | ||
} | ||
|
||
protected function get() { | ||
return (new APIStatusGatewayRead())->call(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
pfSense-pkg-API/files/etc/inc/api/endpoints/APIStatusInterface.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIStatusInterface extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/status/interface"; | ||
} | ||
|
||
protected function get() { | ||
return (new APIStatusInterfaceRead())->call(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
pfSense-pkg-API/files/etc/inc/api/endpoints/APIStatusSystem.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright 2020 Jared Hendrickson | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
require_once("api/framework/APIEndpoint.inc"); | ||
|
||
class APIStatusSystem extends APIEndpoint { | ||
public function __construct() { | ||
$this->url = "/api/v1/status/system"; | ||
} | ||
|
||
protected function get() { | ||
return (new APIStatusSystemRead())->call(); | ||
} | ||
} |
Oops, something went wrong.