summaryrefslogtreecommitdiff
path: root/src/conf_mode/system_conntrack.py
diff options
context:
space:
mode:
authorIndrek Ardel <indrek@ardel.eu>2024-03-10 04:00:32 +0200
committerIndrek Ardel <indrek@ardel.eu>2024-03-12 17:19:17 +0200
commit3e1e2a3e7b6f5d969819bffda2858a91132d595e (patch)
treeec2ae87fa057f63b536b8172855f20b844453190 /src/conf_mode/system_conntrack.py
parent46cdd46215844ff99fa50462367d6040d8af10d3 (diff)
downloadvyos-1x-3e1e2a3e7b6f5d969819bffda2858a91132d595e.tar.gz
vyos-1x-3e1e2a3e7b6f5d969819bffda2858a91132d595e.zip
conntrack: T4022: add RTSP conntrack helper
Diffstat (limited to 'src/conf_mode/system_conntrack.py')
-rwxr-xr-xsrc/conf_mode/system_conntrack.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf_mode/system_conntrack.py b/src/conf_mode/system_conntrack.py
index 2a55daed4..a1472aaaa 100755
--- a/src/conf_mode/system_conntrack.py
+++ b/src/conf_mode/system_conntrack.py
@@ -58,6 +58,11 @@ module_map = {
'nftables': ['tcp dport {1723} ct helper set "pptp_tcp" return'],
'ipv4': True
},
+ 'rtsp': {
+ 'ko': ['nf_nat_rtsp', 'nf_conntrack_rtsp'],
+ 'nftables': ['tcp dport {554} ct helper set "rtsp_tcp" return'],
+ 'ipv4': True
+ },
'sip': {
'ko': ['nf_nat_sip', 'nf_conntrack_sip'],
'nftables': ['tcp dport {5060,5061} ct helper set "sip_tcp" return',
@@ -195,7 +200,7 @@ def generate(conntrack):
def apply(conntrack):
# Depending on the enable/disable state of the ALG (Application Layer Gateway)
# modules we need to either insmod or rmmod the helpers.
-
+
add_modules = []
rm_modules = []