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
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-10-11 06:40:11 +0000
commit575f5ab52bf377c678fce72b8fc24ed0feb0c330 (patch)
tree93aea4cc11d64674038408739332715c0abbf29f /interface-definitions/policy-local-route.xml.in
parent7720ee247c03eeeab895da27804996571ffb476b (diff)
downloadvyos-1x-575f5ab52bf377c678fce72b8fc24ed0feb0c330.tar.gz
vyos-1x-575f5ab52bf377c678fce72b8fc24ed0feb0c330.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 (cherry picked from commit ff43733074675b94ce4ead83fe63870b6cf953c5)
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>