Skip to content

Commit

Permalink
fix(ipv4_nat): Need new filed 'randomise_ports' in action 'endpoint-i…
Browse files Browse the repository at this point in the history
…ndependent-nat'

Fixes #520
  • Loading branch information
vaerh committed Aug 4, 2024
1 parent bb12503 commit 51e161d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions routeros/resource_ip_firewall_nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
}
*/

// ResourceIPFirewallNat https://wiki.mikrotik.com/wiki/Manual:IP/Firewall/NAT
// ResourceIPFirewallNat https://help.mikrotik.com/docs/display/ROS/NAT
func ResourceIPFirewallNat() *schema.Resource {
resSchema := map[string]*schema.Schema{
MetaResourcePath: PropResourcePath("/ip/firewall/nat"),
Expand Down Expand Up @@ -308,7 +308,12 @@ func ResourceIPFirewallNat() *schema.Resource {
Description: "Matches packets randomly with a given probability.",
ValidateFunc: validation.IntBetween(1, 99),
},

"randomise_ports": {
Type: schema.TypeBool,
Optional: true,
Description: "Randomize to which public port connections will be mapped.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"routing_mark": {
Type: schema.TypeString,
Optional: true,
Expand Down

0 comments on commit 51e161d

Please sign in to comment.