From ac4f99ac3b176f1804b17b32e6615e8b3701dfe8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 12 May 2020 19:28:06 +0200 Subject: nat: T2198: split nat-address-port include into individual files --- .../include/nat-address-port.xml.i | 54 ---------------------- interface-definitions/include/nat-address.xml.i | 37 +++++++++++++++ interface-definitions/include/nat-port.xml.i | 17 +++++++ interface-definitions/include/nat-rule.xml.i | 6 ++- 4 files changed, 58 insertions(+), 56 deletions(-) delete mode 100644 interface-definitions/include/nat-address-port.xml.i create mode 100644 interface-definitions/include/nat-address.xml.i create mode 100644 interface-definitions/include/nat-port.xml.i diff --git a/interface-definitions/include/nat-address-port.xml.i b/interface-definitions/include/nat-address-port.xml.i deleted file mode 100644 index 8705d31cb..000000000 --- a/interface-definitions/include/nat-address-port.xml.i +++ /dev/null @@ -1,54 +0,0 @@ - - - IP address, subnet, or range - - ipv4 - IPv4 address to match - - - ipv4net - IPv4 prefix to match - - - ipv4range - IPv4 address range to match - - - !ipv4 - Match everything except the specified address - - - !ipv4net - Match everything except the specified prefix - - - !ipv4range - Match everything except the specified range - - - - - - - - - - - - - - Port number - - 1-65535 - Numeric IP port - - - start-end - Numbered port range (e.g., 1001-1005) - - - - \n\nMultiple destination ports can be specified as a comma-separated list.\nThe whole list can also be negated using '!'.\nFor example: '!22,telnet,http,123,1001-1005' - - - diff --git a/interface-definitions/include/nat-address.xml.i b/interface-definitions/include/nat-address.xml.i new file mode 100644 index 000000000..933dae07b --- /dev/null +++ b/interface-definitions/include/nat-address.xml.i @@ -0,0 +1,37 @@ + + + IP address, subnet, or range + + ipv4 + IPv4 address to match + + + ipv4net + IPv4 prefix to match + + + ipv4range + IPv4 address range to match + + + !ipv4 + Match everything except the specified address + + + !ipv4net + Match everything except the specified prefix + + + !ipv4range + Match everything except the specified range + + + + + + + + + + + diff --git a/interface-definitions/include/nat-port.xml.i b/interface-definitions/include/nat-port.xml.i new file mode 100644 index 000000000..24803ae05 --- /dev/null +++ b/interface-definitions/include/nat-port.xml.i @@ -0,0 +1,17 @@ + + + Port number + + 1-65535 + Numeric IP port + + + start-end + Numbered port range (e.g., 1001-1005) + + + + \n\nMultiple destination ports can be specified as a comma-separated list.\nThe whole list can also be negated using '!'.\nFor example: '!22,telnet,http,123,1001-1005' + + + diff --git a/interface-definitions/include/nat-rule.xml.i b/interface-definitions/include/nat-rule.xml.i index fdba4b8bd..183692664 100644 --- a/interface-definitions/include/nat-rule.xml.i +++ b/interface-definitions/include/nat-rule.xml.i @@ -21,7 +21,8 @@ NAT destination parameters - #include + #include + #include @@ -79,7 +80,8 @@ NAT source parameters - #include + #include + #include -- cgit v1.2.3