-
Notifications
You must be signed in to change notification settings - Fork 0
Add AvmIpPortMapping
Action: AddPortMapping
Available on: ✅ FRITZ!Box / 🚫 FRITZ!Repeater
Status: ✅
Remote access: ✅
Required rights: 🔧
Port mapping entries are only allowed for hosts inside of LAN. Furthermore hosts can only add port mapping entries for themselves and not for other hosts in the LAN. It is not intended to allow port mapping entries for the guest network or hosts with IP addresses routed into WAN.
Input:
Data type | Variable | Example or Description |
---|---|---|
String | NewRemoteHost | 0.0.0.0 |
Ushort | NewExternalPort | 21 |
String | NewProtocol | UDP or TCP |
Ushort | NewInternalPort | 21 |
String | NewInternalClient | 192.168.178.2 |
Boolean | NewEnabled | 1 |
String | NewPortMappingDescription | FTP-Server |
Uint | NewLeaseDuration | 0 |
Output:
Data type | Variable | Example |
---|---|---|
String | u | urn:dslforum-org:service:WANIPConnection:1 |
Add-AvmIpPortMapping
[-Insecure]
[-RemoteAccess]
[-Url <String>]
[-Port <Ushort>]
[-Credential <PSCredential>]
[-NewRemoteHost <String>]
[-NewExternalPort <Ushort>]
[-NewProtocol <String>]
[-NewInternalPort <Ushort>]
[-NewInternalClient <String>]
[-NewEnabled <Boolean>]
[-NewPortMappingDescription <String>]
[-NewLeaseDuration <Uint>]
This example describes how to run the command using a valid certificate and remote access.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
RemoteAccess = $true
Url = "https://myfritzaddress12.myfritz.net"
Port = 443
Credential = $Credential
NewRemoteHost = "0.0.0.0"
NewExternalPort = 21
NewProtocol = "TCP"
NewInternalPort = 21
NewInternalClient = "192.168.178.2"
NewEnabled = 1
NewPortMappingDescription = "FTP-Server"
NewLeaseDuration = 0
}
Add-AvmIpPortMapping @splatParameters
This example describes how to run the command using local connection with a valid certificate.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Url = "https://fritz.box"
Port = 49443
Credential = $Credential
NewRemoteHost = "0.0.0.0"
NewExternalPort = 21
NewProtocol = "TCP"
NewInternalPort = 21
NewInternalClient = "192.168.178.2"
NewEnabled = 1
NewPortMappingDescription = "FTP-Server"
NewLeaseDuration = 0
}
Add-AvmIpPortMapping @splatParameters
IP address can be used instead of DNS name.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Url = "https://192.168.178.1"
Port = 49443
Credential = $Credential
NewRemoteHost = "0.0.0.0"
NewExternalPort = 21
NewProtocol = "TCP"
NewInternalPort = 21
NewInternalClient = "192.168.178.2"
NewEnabled = 1
NewPortMappingDescription = "FTP-Server"
NewLeaseDuration = 0
}
Add-AvmIpPortMapping @splatParameters
This example describes how to run the command using local connection without a valid certificate.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Insecure = $true
Url = "http://fritz.box"
Port = 49000
Credential = $Credential
NewRemoteHost = "0.0.0.0"
NewExternalPort = 21
NewProtocol = "TCP"
NewInternalPort = 21
NewInternalClient = "192.168.178.2"
NewEnabled = 1
NewPortMappingDescription = "FTP-Server"
NewLeaseDuration = 0
}
Add-AvmIpPortMapping @splatParameters
IP address can be used instead of DNS name.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Insecure = $true
Url = "http://192.168.178.1"
Port = 49000
Credential = $Credential
NewRemoteHost = "0.0.0.0"
NewExternalPort = 21
NewProtocol = "TCP"
NewInternalPort = 21
NewInternalClient = "192.168.178.2"
NewEnabled = 1
NewPortMappingDescription = "FTP-Server"
NewLeaseDuration = 0
}
Add-AvmIpPortMapping @splatParameters
Copyright ©️ 2020 Gincules. All rights reserved.
- Home
- AppSetup
- Auth
- Dect
- DeviceConfig
- DeviceInfo
- Filelinks
- Homeauto
- Homeplug
- HostFilter
- Hosts
- Find-AvmHostUpdate
- Get-AvmHostAutoWakeOnLanByMac
- Get-AvmHostChangeCounter
- Get-AvmHostGenericHostEntry
- Get-AvmHostListPath
- Get-AvmHostMeshListPath
- Get-AvmHostNumberOfEntry
- Get-AvmHostSpecificEntryByIp
- Get-AvmHostSpecificHostEntry
- Set-AvmHostAutoWakeOnLanByMac
- Set-AvmHostNameByMac
- Start-AvmHostWakeOnLanByMac
- Update-AvmHost
- LANConfigSecurity
- LANEthernetInterfaceConfig
- LANHostConfigManagement
- Layer3Forwarding
- ManagementServer
- MyFritz
- OnTel
- Enable-AvmOnTel
- Enable-AvmOnTelByIndex
- Enable-AvmOnTelConfigByIndex
- Enable-AvmOnTelDeflection
- Get-AvmOnCallBarringEntry
- Get-AvmOnTelBarringEntryByNum
- Get-AvmOnTelCallBarringList
- Get-AvmOnTelCallList
- Get-AvmOnTelDectHandsetInfo
- Get-AvmOnTelDectHandsetList
- Get-AvmOnTelDeflection
- Get-AvmOnTelDeflectionById
- Get-AvmOnTelInfo
- Get-AvmOnTelInfoByIndex
- Get-AvmOnTelNumberOfDeflection
- Get-AvmOnTelNumberOfEntry
- Get-AvmOnTelPhonebookEntry
- Get-AvmOnTelPhonebookEntryUid
- Get-AvmOnTelPhonebookList
- Get-AvmOnTelPhonelist
- New-AvmOnTelPhonebook
- Remove-AvmOnTelByIndex
- Remove-AvmOnTelCallBarringEntryUid
- Remove-AvmOnTelPhonebook
- Remove-AvmOnTelPhonebookEntry
- Remove-AvmOnTelPhoneEntryByUid
- Set-AvmOnTelCallBarringEntry
- Set-AvmOnTelConfig
- Set-AvmOnTelDectHandsetPhonebook
- Set-AvmOnTelPhonebookEntry
- Set-AvmOnTelPhonebookEntryUid
- RemoteAccess
- Speedtest
- Storage
- TAM
- Time
- UPnP
- UserInterface
- VoIP
- Add-AvmVoipAccount
- Get-AvmVoipAccount
- Get-AvmVoipAlarmClock
- Get-AvmVoipClient
- Get-AvmVoipClient2
- Get-AvmVoipClient3
- Get-AvmVoipClientByIp
- Get-AvmVoipClients
- Get-AvmVoipCommonAreaCode
- Get-AvmVoipCommonCountryCode
- Get-AvmVoipDialConfig
- Get-AvmVoipEnableAreaCode
- Get-AvmVoipEnableCountryCode
- Get-AvmVoipExistingNumbers
- Get-AvmVoipInfo
- Get-AvmVoipInfoEx
- Get-AvmVoipMaxNumber
- Get-AvmVoipNumber
- Get-AvmVoipNumberOfAlarmClock
- Get-AvmVoipNumberOfClient
- Get-AvmVoipNumberOfNumber
- Get-AvmVoipPhonePort
- Remove-AvmVoipAccount
- Remove-AvmVoipClient
- Set-AvmVoipAlarmClockEnable
- Set-AvmVoipClient
- Set-AvmVoipClient2
- Set-AvmVoipClient3
- Set-AvmVoipClient4
- Set-AvmVoipCommonAreaCode
- Set-AvmVoipCommonCountryCode
- Set-AvmVoipConfig
- Set-AvmVoipDelayedCallNotification
- Set-AvmVoipDialConfig
- Set-AvmVoipEnableAreaCode
- Set-AvmVoipEnableCountryCode
- Start-AvmVoipDial
- Stop-AvmVoipDial
- WANCommonInterfaceConfig
- WANDSLInterfaceConfig
- WANDSLLinkConfig
- WANEthernetLinkConfig
- WANIPConnection
- Add-AvmIpPortMapping
- Get-AvmIpDnsServer
- Get-AvmIpExternalAddress
- Get-AvmIpGenericPortMappingEntry
- Get-AvmIpInfo
- Get-AvmIpConnectionTypeInfo
- Get-AvmIpNatRsipStatus
- Get-AvmIpPortMappingEntry
- Get-AvmIpSpecificPortMappingEntry
- Get-AvmIpStatusInfo
- Remove-AvmIpPortMapping
- Set-AvmIpConnectionTrigger
- Set-AvmIpConnectionType
- Set-AvmIpIdleDisconnectTime
- Set-AvmIpRouteProtocolRx
- Start-AvmIpConnection
- Stop-AvmIpConnection
- WANPPPConnection
- Add-AvmPppPortMapping
- Get-AvmPppAutoDisconnectTimeSpan
- Get-AvmPppDnsServer
- Get-AvmPppExternalIpAddress
- Get-AvmPppGenericPortMappingEntry
- Get-AvmPppInfo
- Get-AvmPppLinkLayerMaxBitRate
- Get-AvmPppNatRsipStatus
- Get-AvmPppPortMappingNoOfEntry
- Get-AvmPppSpecificPortMappingEntry
- Get-AvmPppStatusInfo
- Get-AvmPppTypeInfo
- Get-AvmPppUserName
- Remove-AvmPppPortMapping
- Set-AvmPppAutoDisconnectTimeSpan
- Set-AvmPppIdleDisconnectTime
- Set-AvmPppPassword
- Set-AvmPppRouteProtocolRx
- Set-AvmPppTrigger
- Set-AvmPppType
- Set-AvmPppUserName
- Start-AvmPppConnection
- Stop-AvmPppConnection
- WebDAVClient
- WLANConfiguration
- Get-AvmWlanBeaconAdvertisement
- Get-AvmWlanBeaconType
- Get-AvmWlanBssid
- Get-AvmWlanChannelInfo
- Get-AvmWlanConfigurationInfo
- Get-AvmWlanConnectionInfo
- Get-AvmWlanDeviceListPath
- Get-AvmWlanExternalInfo
- Get-AvmWlanGenericDeviceInfo
- Get-AvmWlanHybridMode
- Get-AvmWlanIptvOptimized
- Get-AvmWlanNightControl
- Get-AvmWlanPacketStatistic
- Get-AvmWlanSecruityProperty
- Get-AvmWlanSecurityKey
- Get-AvmWlanSpecificDeviceInfo
- Get-AvmWlanSpecificDeviceInfoByIp
- Get-AvmWlanSsid
- Get-AvmWlanStatistic
- Get-AvmWlanTotalAssociation
- Get-AvmWlanWepKeyIndex
- Get-AvmWlanWpsInfo
- Set-AvmWlanConfig
- Set-AvmWlanBasBeaconSecProperty
- Set-AvmWlanBeaconAdvertisment
- Set-AvmWlanBeaconType
- Set-AvmWlanChannel
- Set-AvmWlanDefaultWepKeyIndex
- Set-AvmWlanEnable
- Set-AvmWlanGlobalEnable
- Set-AvmWlanHighFrequencyBand
- Set-AvmWlanHybridMode
- Set-AvmWlanIptvOptimized
- Set-AvmWlanSsid
- Set-AvmWlanStickSurfEnable
- Set-AvmWlanWepSecurityKey
- Set-AvmWlanWpsConfig