summaryrefslogtreecommitdiff
path: root/interface-definitions/policy-local-route.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-10-06 09:18:35 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-10-06 09:18:35 +0000
commitff43733074675b94ce4ead83fe63870b6cf953c5 (patch)
tree4b328a99209fec87974def65aabb8c39574b9754 /interface-definitions/policy-local-route.xml.in
parent3e4ea27ac21b163e00c03e21bf4bd8f9d19d99b6 (diff)
downloadvyos-1x-ff43733074675b94ce4ead83fe63870b6cf953c5.tar.gz
vyos-1x-ff43733074675b94ce4ead83fe63870b6cf953c5.zip
T5165: Implement policy local-route source and destination port
Add `policy local-route` source and destination port set policy local-route rule 23 destination port '222' set policy local-route rule 23 protocol 'tcp' set policy local-route rule 23 set table '123' set policy local-route rule 23 source port '8888' % ip rule show prio 23 23: from all ipproto tcp sport 8888 dport 222 lookup 123
Diffstat (limited to 'interface-definitions/policy-local-route.xml.in')
-rw-r--r--interface-definitions/policy-local-route.xml.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/interface-definitions/policy-local-route.xml.in b/interface-definitions/policy-local-route.xml.in
index 6827bd64e..15be099c9 100644
--- a/interface-definitions/policy-local-route.xml.in
+++ b/interface-definitions/policy-local-route.xml.in
@@ -60,6 +60,7 @@
</properties>
<children>
#include <include/policy/local-route_rule_ipv4_address.xml.i>
+ #include <include/port-number.xml.i>
</children>
</node>
<node name="destination">
@@ -68,6 +69,7 @@
</properties>
<children>
#include <include/policy/local-route_rule_ipv4_address.xml.i>
+ #include <include/port-number.xml.i>
</children>
</node>
#include <include/interface/inbound-interface.xml.i>
@@ -125,12 +127,14 @@
</constraint>
</properties>
</leafNode>
+ #include <include/policy/local-route_rule_protocol.xml.i>
<node name="source">
<properties>
<help>Source parameters</help>
</properties>
<children>
#include <include/policy/local-route_rule_ipv6_address.xml.i>
+ #include <include/port-number.xml.i>
</children>
</node>
<node name="destination">
@@ -139,6 +143,7 @@
</properties>
<children>
#include <include/policy/local-route_rule_ipv6_address.xml.i>
+ #include <include/port-number.xml.i>
</children>
</node>
#include <include/interface/inbound-interface.xml.i>