From 4ef110fd2c501b718344c72d495ad7e16d2bd465 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 30 Dec 2023 23:25:20 +0100 Subject: T5474: establish common file name pattern for XML conf mode commands We will use _ as CLI level divider. The XML definition filename and also the Python helper should match the CLI node. Example: set interfaces ethernet -> interfaces_ethernet.xml.in set interfaces bond -> interfaces_bond.xml.in set service dhcp-server -> service_dhcp-server-xml.in --- interface-definitions/service_upnp.xml.in | 228 ++++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+) create mode 100644 interface-definitions/service_upnp.xml.in (limited to 'interface-definitions/service_upnp.xml.in') diff --git a/interface-definitions/service_upnp.xml.in b/interface-definitions/service_upnp.xml.in new file mode 100644 index 000000000..20e01bfbd --- /dev/null +++ b/interface-definitions/service_upnp.xml.in @@ -0,0 +1,228 @@ + + + + + + + Universal Plug and Play (UPnP) service + 900 + + + + + Name of this service + + txt + Friendly name + + + + + + WAN network interface + + + + + #include + + + + + + WAN network IP + + ipv4 + IPv4 address + + + ipv6 + IPv6 address + + + + + + + + + + + Enable NAT-PMP support + + + + + + Enable Secure Mode + + + + + + Presentation Url + + txt + Presentation Url + + + + + + PCP-base lifetime Option + + + + + Max lifetime time + + + + + + + + Min lifetime time + + + + + + + + + + Local IP addresses for service to listen on + + + + + + <interface> + Monitor interface address + + + ipv4 + IPv4 address to listen for incoming connections + + + ipv4net + IPv4 prefix to listen for incoming connections + + + ipv6 + IPv6 address to listen for incoming connections + + + ipv6net + IPv6 prefix to listen for incoming connections + + + + #include + + + + + + + + + Enable STUN probe support (can be used with NAT 1:1 support for WAN interfaces) + + + + + The STUN server address + + txt + The STUN server host address + + + + + + + #include + + + + + UPnP Rule + + u32:0-65535 + Rule number + + + + + + + #include + + + Port range (REQUIRE) + + <port> + single port + + + <portN>-<portM> + Port range (use '-' as delimiter) + + + + + + + + + Port range (REQUIRE) + + <port> + single port + + + <portN>-<portM> + Port range (use '-' as delimiter) + + + + + + + + + The IP to which this rule applies (REQUIRE) + + ipv4 + The IPv4 address to which this rule applies + + + ipv4net + The IPv4 to which this rule applies + + + + + + + + + + Actions against the rule (REQUIRE) + + allow deny + + + (allow|deny) + + + + + + + + + + -- cgit v1.2.3