From 29920a99701bd358d8323b2e0468f5fee3063791 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 18 Aug 2025 08:16:50 +0200 Subject: [PATCH] add vnceddie tunnel script --- bin/vnceddie | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 bin/vnceddie diff --git a/bin/vnceddie b/bin/vnceddie new file mode 100755 index 0000000..282988f --- /dev/null +++ b/bin/vnceddie @@ -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) -- 2.39.5