You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added create, update and delete for routing gateway endpoint, updated routing gateway unit test, updated docs, included bug fix for blank alias entry bug
| name | string | Name of alias to add new address values |
964
967
| address | string or array | Array of values to add to alias. A single value may be specified as string. |
965
-
| detail | string or array | Array of descriptions for alias values. Descriptions must match the order the that they are specified in the `address` array. Single descriptions may be specified as string |
968
+
| detail | string or array | Array of descriptions for alias values. Descriptions must match the order the that they are specified in the `address` array. Single descriptions may be specified as string. If you pass In less `detail` values than `address` values, a default auto-created detail will be applied to the remaining values. (optional)|
_Requires at least one of the following privileges:_[`page-all`, `page-system-gateways-editgateway`]
2546
+
2547
+
2548
+
***Endpoint:***
2549
+
2550
+
```bash
2551
+
Method: POST
2552
+
Type: RAW
2553
+
URL: https://{{$hostname}}/api/v1/routing/gateway
2554
+
```
2555
+
2556
+
2557
+
2558
+
***Query params:***
2559
+
2560
+
| Key | Value | Description |
2561
+
| --- | ------|-------------|
2562
+
| interface | string | Set which interface the gateway will apply to. You may specify either the interface's descriptive name, the pfSense ID (wan, lan, optx), or the physical interface id (e.g. igb0). |
2563
+
| ipprotocol | string | Set what IP protocol this gateway will serve. Options are `inet` for IPv4, or `inet6` for IPv6. |
2564
+
| name | string | Set a descriptive name for this gateway. This name must be unique, and can only contains alphanumeric characters and underscores. |
2565
+
| gateway | string | Set the IP address of the gateway. This value must be a valid IPv4 address If you have set your `ipprotocol` value to `inet`, or it must be a valid IPv6 address if you have set your `ipprotocol` value to `inet6`. Unlike the pfSense webConfigurator, this address Is not restricted to an address within the interfaces subnet by default. |
2566
+
| monitor | string | Set the IP address used to monitor this gateway. This is usually only necessary if the `gateway` IP does not accept ICMP probes. Defaults to the `gateway` address. (optional) |
2567
+
| disabled | boolean | Disable this gateway upon creation. Defaults to false. (optional) |
2568
+
| monitor_disable | boolean | Disable gateway monitoring for this gateway. Defaults to false. (optional) |
2569
+
| action_disable | boolean | Disable any action taken on gateway events for this gateway. This will consider the gateway always up. Defaults to false. (optional) |
2570
+
| force_down | boolean | Force this gateway to always be considered down. Defaults to false. (optional) |
2571
+
| descr | string | Set a description for this gateway (optional) |
2572
+
| weight | integer | Set this gateways weight when utilizing gateway load balancing within a gateway group. This value must be between 1 and 30. Defaults to 1. (optional) |
2573
+
| data_payload | integer | Set a data payload to send on ICMP packets sent to the gateway monitor IP. This value must be a positive integer. Defaults to 1. (optional) |
2574
+
| latencylow | integer | Set the low threshold in milliseconds for latency. Any packet that exceeds this threshold will be trigger a minor latency gateway event. This value must be a positive integer that is less than the `latencyhigh` value. Defaults to 200. (optional) |
2575
+
| latencyhigh | integer | Set the high threshold in milliseconds for latency. Any packet that exceeds this threshold will be trigger a major latency gateway event. This value must be a positive integer that is greater than the `latencylow` value. Defaults to 500. (optional) |
2576
+
| losslow | integer | Set the low threshold for packet loss In %. If total packet loss exceeds this percentage, a minor packet loss gateway event will be triggered. This value must be greater or equal to 1 and be less than the `losshigh` value. Defaults to 10. (optional) |
2577
+
| losshigh | integer | Set the high threshold for packet loss In %. If total packet loss exceeds this percentage, a major packet loss gateway event will be triggered. This value must be greater than the `losslow` value and be less or equal to 100. Defaults to 20. (optional) |
2578
+
| interval | integer | Set how often gateway monitor ICMP probes will be sent in milliseconds. This value must be greater than or equal to 1 and less than or equal to 3600000. Defaults to 500. (optional) |
2579
+
| loss_interval | integer | Set how long the gateway monitor will wait (in milliseconds) for response packets before considering the packet lost. This value must be greater than or equal to the `latencyhigh` value. Defaults to 2000. (optional) |
2580
+
| time_period | integer | Set the time period In milliseconds for gateway monitor metrics to be averaged. This value must be greater than twice the probe interval plus the loss interval. Defaults to 60000. (optional) |
2581
+
| alert_interval | integer | Set the time interval in milliseconds which alert conditions will be checked. This value must be greater than or equal to the `interval` value. Defaults to 1000. (optional) |
2582
+
2583
+
2584
+
2585
+
***Body:***
2586
+
2587
+
```js
2588
+
{
2589
+
"interface":"wan",
2590
+
"name":"TEST_GATEWAY",
2591
+
"ipprotocol":"inet",
2592
+
"gateway":"172.16.209.1",
2593
+
"monitor":"172.16.209.250",
2594
+
"descr":"Test gateway"
2595
+
}
2596
+
```
2597
+
2598
+
2599
+
2600
+
### 2. Delete Routing Gateways
2601
+
2602
+
2603
+
Delete existing routing gateways.<br><br>
2604
+
2605
+
_Requires at least one of the following privileges:_[`page-all`, `page-system-gateways-editgateway`]
2606
+
2607
+
2608
+
***Endpoint:***
2609
+
2610
+
```bash
2611
+
Method: DELETE
2612
+
Type: RAW
2613
+
URL: https://{{$hostname}}/api/v1/routing/gateway
2614
+
```
2615
+
2616
+
2617
+
2618
+
***Query params:***
2619
+
2620
+
| Key | Value | Description |
2621
+
| --- | ------|-------------|
2622
+
| id | integer | Specify the ID of the gateway to delete |
_Requires at least one of the following privileges:_[`page-all`, `page-system-gateways-editgateway`]
2670
+
2671
+
2672
+
***Endpoint:***
2673
+
2674
+
```bash
2675
+
Method: PUT
2676
+
Type: RAW
2677
+
URL: https://{{$hostname}}/api/v1/routing/gateway
2678
+
```
2679
+
2680
+
2681
+
2682
+
***Query params:***
2683
+
2684
+
| Key | Value | Description |
2685
+
| --- | ------|-------------|
2686
+
| interface | string | Update the interface the gateway will apply to. You may specify either the interface's descriptive name, the pfSense ID (wan, lan, optx), or the physical interface id (e.g. igb0). (optional) |
2687
+
| ipprotocol | string | Update the IP protocol this gateway will serve. Options are `inet` for IPv4, or `inet6` for IPv6. If you are changing the protocol, you will also be required to update the `gateway` and/or `monitor` values to match the specified protocol. (optional) |
2688
+
| name | string | Update the descriptive name for this gateway. This name must be unique, and can only contain alphanumeric characters and underscores. (optional) |
2689
+
| gateway | string | Update the IP address of the gateway. This value must be a valid IPv4 address If you have set your `ipprotocol` value to `inet`, or it must be a valid IPv6 address if you have set your `ipprotocol` value to `inet6`. Unlike the pfSense webConfigurator, this address Is not restricted to an address within the interfaces subnet by default. (optional) |
2690
+
| monitor | string | Set the IP address used to monitor this gateway. This is usually only necessary if the `gateway` IP does not accept ICMP probes. Defaults to the `gateway` address. (optional) |
2691
+
| disabled | boolean | Enable or disable this gateway upon update. True to disable, false to enable. (optional) |
2692
+
| monitor_disable | boolean | Enable or disable gateway monitoring for this gateway. True to disable, false to enable. (optional) |
2693
+
| action_disable | boolean | Enable or disable any action taken on gateway events for this gateway. If disabled, this will consider the gateway always up. True for disabled, false for enable. (optional) |
2694
+
| force_down | boolean | Enable or disable forcing this gateway to always be considered down. True for enable, false for disable. (optional) |
2695
+
| descr | string | Update the description for this gateway (optional) |
2696
+
| weight | integer | Update this gateways weight when utilizing gateway load balancing within a gateway group. This value must be between 1 and 30. (optional) |
2697
+
| data_payload | integer | Update the data payload to send on ICMP packets sent to the gateway monitor IP. This value must be a positive integer. (optional) |
2698
+
| latencylow | integer | Update the low threshold in milliseconds for latency. Any packet that exceeds this threshold will be trigger a minor latency gateway event. This value must be a positive integer that is less than the `latencyhigh` value. (optional) |
2699
+
| latencyhigh | integer | Update the high threshold in milliseconds for latency. Any packet that exceeds this threshold will be trigger a major latency gateway event. This value must be a positive integer that is greater than the `latencylow` value. (optional) |
2700
+
| losslow | integer | Update the low threshold for packet loss In %. If total packet loss exceeds this percentage, a minor packet loss gateway event will be triggered. This value must be greater or equal to 1 and be less than the `losshigh` value. (optional) |
2701
+
| losshigh | integer | Update the high threshold for packet loss In %. If total packet loss exceeds this percentage, a major packet loss gateway event will be triggered. This value must be greater than the `losslow` value and be less or equal to 100. (optional) |
2702
+
| interval | integer | Update how often gateway monitor ICMP probes will be sent in milliseconds. This value must be greater than or equal to 1 and less than or equal to 3600000. (optional) |
2703
+
| loss_interval | integer | Update how long the gateway monitor will wait (in milliseconds) for response packets before considering the packet lost. This value must be greater than or equal to the `latencyhigh` value. (optional) |
2704
+
| time_period | integer | Update the time period In milliseconds for gateway monitor metrics to be averaged. This value must be greater than twice the probe interval plus the loss interval. (optional) |
2705
+
| alert_interval | integer | Update the time interval in milliseconds which alert conditions will be checked. This value must be greater than or equal to the `interval` value. (optional) |
0 commit comments