summaryrefslogtreecommitdiff
path: root/interface-definitions/include/nat-rule.xml.i
blob: fdba4b8bd9c8b636792d2a93a6180803336b0c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<tagNode name="rule">
  <properties>
    <help>Rule number for NAT</help>
    <valueHelp>
      <format>1-9999</format>
      <description>Number for this NAT rule</description>
    </valueHelp>
    <constraint>
      <validator name="numeric" argument="--range 1-9999"/>
    </constraint>
    <constraintErrorMessage>NAT rule number must be between 1 and 9999</constraintErrorMessage>
  </properties>
  <children>
    <leafNode name="description">
      <properties>
        <help>Rule description</help>
      </properties>
    </leafNode>
    <node name="destination">
      <properties>
        <help>NAT destination parameters</help>
      </properties>
      <children>
        #include <include/nat-address-port.xml.i>
      </children>
    </node>
    <leafNode name="disable">
      <properties>
        <help>Disable NAT rule</help>
        <valueless/>
      </properties>
    </leafNode>
    <leafNode name="exclude">
      <properties>
        <help>Exclude packets matching this rule from NAT</help>
        <valueless/>
      </properties>
    </leafNode>
    <leafNode name="log">
      <properties>
        <help>NAT rule logging</help>
        <valueless/>
      </properties>
    </leafNode>
    <leafNode name="protocol">
      <properties>
        <help>Protocol to NAT</help>
        <completionHelp>
          <list>tcp udp tcp_udp all</list>
        </completionHelp>
        <valueHelp>
          <format>tcp</format>
          <description>Transmission Control Protocol</description>
        </valueHelp>
        <valueHelp>
          <format>udp</format>
          <description>User Datagram Protocol</description>
        </valueHelp>
        <valueHelp>
          <format>tcp_udp</format>
          <description>Both TCP and UDP</description>
        </valueHelp>
        <valueHelp>
          <format>all</format>
          <description>All IP protocols</description>
        </valueHelp>
        <valueHelp>
          <format>0-255</format>
          <description>IP protocol number</description>
        </valueHelp>
        <valueHelp>
          <format>!&lt;protocol&gt;</format>
          <description>All IP protocols except for the specified name or number (negation)</description>
        </valueHelp>
      </properties>
    </leafNode>
    <node name="source">
      <properties>
        <help>NAT source parameters</help>
      </properties>
      <children>
        #include <include/nat-address-port.xml.i>
      </children>
    </node>
  </children>
</tagNode>