freebox_port_forwarding
(Resource)
Manages a port forwarding between a local network host and the Freebox Internet Gateway
Example
resource "freebox_port_forwarding" "example" {
enabled = true
ip_protocol = "udp"
target_ip = "192.168.1.255"
comment = "This is an example comment"
source_ip = "0.0.0.0"
port_range_start = 32443
port_range_end = 32443
target_port = 443
}
output "hostname" {
value = resource.freebox_port_forwarding.example.hostname
}
Schema
Required
enabled
(Boolean) Status of the forwardingip_protocol
(String) Protocol to handleport_range_start
(Number) Start boundary of the port range to forward. The range is inclusive.target_ip
(String) Local IP of the local port forwarding target
Optional
comment
(String) Additional comment associated with the ruleport_range_end
(Number) End boundary of the port range to forward. If not set, it will default to the same value asport_range_start
.source_ip
(String) Local IP of the local port forwarding target. If left unset or set to 0.0.0.0, the rule will apply to any incoming IPtarget_port
(Number) The target port range to forward to. If not set, it will default to the same value asport_range_start
. Only available for a range of 1 port.
Read-Only
hostname
(String) Name of the target host in the local networkid
(Number) Unique identifier of the port forwarding
Import
# ------------------------------------------------ 👇 is the ID of the virtual machine
terraform import "freebox_port_forwarding.example" 78