Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 2 Следующий »

NTU-2W / NTU-RG-1402 / NTU-RG-1421

В качестве примера необходимо пробросить UDP порт № 27000 на ПК с адресом 192.168.1.2. Правила будут добавлены для PPPoE WAN интерфейса.

set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.PortMappingEnabled" "TRUE"
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.ExternalPort" "27000"
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.X_BROADCOM_COM_ExternalPortEnd" "27000"
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.InternalPort" "27000"
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.X_BROADCOM_COM_InternalPortEnd" "27000"
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.PortMappingProtocol" "UDP"
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.InternalClient" "192.168.1.2"
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.PortMapping.1.PortMappingDescription" "TEST"

Если необходимо добавить правила для другого WAN-интерфейса, например, IPoE, то нужно во всех property заменить WANPPPConnection.{i}. на WANIPConnection.{i}. указав нужный индекс WAN-IP-интерфейса.

NTU-RG-54XX / NTU-52V

В качестве примера необходимо пробросить TCP порт № 100 на ПК с адресом 192.168.1.100. Правила будут добавлены для IPoE WAN интерфейса.

set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.ExternalPort" "100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.InternalClient" "192.168.1.100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.InternalPort" "100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.PortMappingDescription" "TEST" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.PortMappingEnabled" "TRUE" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.PortMappingProtocol" "TCP" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.RemoteHost" "0.0.0.0" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.X_ELTEX_RU_ExternalPortEnd" "100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.PortMapping.1.X_ELTEX_RU_InternalPortEnd" "100" nocheck

Если необходимо добавить правила для другого WAN-интерфейса, например, PPPoE, то нужно во всех property заменить WANIPConnection.2. на WANPPPConnection.1.

В приведенных выше примерах:

  1. "PortMappingEnabled" "TRUE"   -   Включает правило NAT
  2. "ExternalPort"  -   Начальный внешний порт
  3. "ExternalPortEnd"  -   Конечный внешний порт
  4. "InternalPort" -   Начальный внутренний порт
  5. "InternalPortEnd" -   Конечный внутренний порт
  6. "PortMappingProtocol"  -   Тип протокола ("TCP or UDP", "TCP", "UDP")
  7. "InternalClient"  -   Адрес локального устройства, на который пробрасывается порт
  8. "PortMappingDescription" "TEST"  -   Название правила NAT


  • Нет меток