diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-02 22:23:33 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-02 22:23:33 +0200 |
commit | bc01277bdfdf49be8950fe2cbf3749d42da2850d (patch) | |
tree | cc7cd98286d1765202895e4a66bbfb0017bea42a | |
parent | 96dce0f47805bb321881183da9a47b621fd54ec8 (diff) | |
download | vyos-1x-bc01277bdfdf49be8950fe2cbf3749d42da2850d.tar.gz vyos-1x-bc01277bdfdf49be8950fe2cbf3749d42da2850d.zip |
conntrack: T3660: make peer port configurable
-rw-r--r-- | data/templates/conntrackd/conntrackd.conf.tmpl | 4 | ||||
-rw-r--r-- | interface-definitions/service_conntrack-sync.xml.in | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/data/templates/conntrackd/conntrackd.conf.tmpl b/data/templates/conntrackd/conntrackd.conf.tmpl index 17ee529bf..ff6f785d5 100644 --- a/data/templates/conntrackd/conntrackd.conf.tmpl +++ b/data/templates/conntrackd/conntrackd.conf.tmpl @@ -13,12 +13,12 @@ Sync { IPv4_address {{ listen_address }} {% endif %} IPv4_Destination_Address {{ iface_config.peer }} - Port 3780 + Port {{ iface_config.port if iface_config.port is defined else '3780' }} {% else %} {% set ip_address = iface | get_ipv4 %} Multicast { IPv4_address {{ mcast_group }} - Group 3780 + Group {{ iface_config.port if iface_config.port is defined else '3780' }} IPv4_interface {{ ip_address[0] | ip_from_cidr }} {% endif %} Interface {{ iface }} diff --git a/interface-definitions/service_conntrack-sync.xml.in b/interface-definitions/service_conntrack-sync.xml.in index 8ce82d867..584f687c7 100644 --- a/interface-definitions/service_conntrack-sync.xml.in +++ b/interface-definitions/service_conntrack-sync.xml.in @@ -142,6 +142,7 @@ </constraint> </properties> </leafNode> + #include <include/port-number.xml.i> </children> </tagNode> #include <include/listen-address-ipv4.xml.i> |