Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Блок кода
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.ExternalPort" "100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.InternalClient" "192.168.1.100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.InternalPort" "100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.PortMappingDescription" "TEST" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.PortMappingEnabled" "TRUE" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.PortMappingProtocol" "TCP" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.RemoteHost" "0.0.0.0" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.X_ELTEX_RU_ExternalPortEnd" "100" nocheck
set property "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.12.PortMapping.1.X_ELTEX_RU_InternalPortEnd" "100" nocheck

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

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

...