Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

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"

...

  1.   -   Начальный внешний порт
  2. "ExternalPortEnd"

...

  1.   -   Конечный внешний порт
  2. "InternalPort"

...

  1. -   Начальный внутренний порт
  2. "InternalPortEnd"

...

  1. -   Конечный внутренний порт
  2. "PortMappingProtocol"

...

  1.   -   Тип протокола ("TCP or UDP", "TCP", "UDP")
  2. "InternalClient"

...

  1.   -   Адрес локального устройства, на который пробрасывается порт
  2. "PortMappingDescription" "TEST"  -   Название правила NAT