]> git.parisson.com Git - telecaster-server.git/commitdiff
add vnceddie tunnel script
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 18 Aug 2025 06:16:50 +0000 (08:16 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 18 Aug 2025 06:16:50 +0000 (08:16 +0200)
bin/vnceddie [new file with mode: 0755]

diff --git a/bin/vnceddie b/bin/vnceddie
new file mode 100755 (executable)
index 0000000..282988f
--- /dev/null
@@ -0,0 +1,44 @@
+#!/usr/bin/python3
+
+import os, sys
+
+user = 'telecaster'
+host = 'eddie.parisson.com'
+ids = ['00', '01', '08', '09',
+        '10', '12', '13', '15', '16', '17',
+        '20', '17', '22', '23',
+        '30', '31', '32', '33', '34',
+        '35', '36', '37', '38', '39',
+        '40', '41', '42', '43', '44']
+
+maps = [{'local':2500, 'host': 'localhost', 'distant':25 }]
+
+args = user+'@'+host
+
+for id in ids:
+    #if id[0] == '0':
+    #    id_dns = id[1]
+    #else:
+    #    id_dns = id
+    args += ' -L 120' + str(id) + ':TC-' + str(id) + ':22'
+    args += ' -L 180' + str(id) + ':TC-' + str(id) + ':80'
+    args += ' -L 150' + str(id) + ':TC-' + str(id) + ':5900'
+    args += ' -L 160' + str(id) + ':TC-' + str(id) + ':5901'
+    args += ' -L 170' + str(id) + ':TC-' + str(id) + ':8000'
+
+
+args += ' -L 24001:192.168.1.254:80 -L 17000:localhost:80'
+#args += ' -L 5901:192.168.1.159:5901'
+#args += ' -L 8001:192.168.1.159:8000'
+args += ' -L 5901:localhost:5901'
+args += ' -L 5944:192.168.1.21:5900'
+args += ' -L 8888:192.168.1.21:8000'
+args += ' -L 15200:localhost:15200'
+args += ' -L 18035:localhost:18035'
+args += ' -L 18036:localhost:18036'
+args += ' -L 22300:localhost:22300'
+
+print('host : ' + host)
+print('args : ' + args)
+
+os.system('ssh ' + args)