From fa6568a41b2836e086d9e6bf813c7b07fca3b819 Mon Sep 17 00:00:00 2001 From: tf4482 Date: Sat, 30 Mar 2024 13:17:24 +0100 Subject: [PATCH] refactor: :recycle: Refactored example config file --- pytu.example.json | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/pytu.example.json b/pytu.example.json index 9117e1c..1ad064f 100644 --- a/pytu.example.json +++ b/pytu.example.json @@ -1,55 +1,62 @@ { "tunnels": [ { - "name": "Tunnel 1", + "name": "Tunnel to Ubuntu on Homeserver", "ssh": { - "port": 12345, + "port": 22, "options": ["-f", "-N"], "forwardings": [ { - "local_port": 8001, + "local_port": 81, "remote_host": "localhost", - "remote_port": 8000 + "remote_port": 80 }, { - "local_port": 3307, + "local_port": 8081, "remote_host": "localhost", - "remote_port": 3306 + "remote_port": 8080 + }, + { + "local_port": 8096, + "remote_host": "localhost", + "remote_port": 8096 } ], - "host": "192.168.1.100" + "user": "username", + "host": "192.168.0.1" } }, { - "name": "Tunnel 2", + "name": "Tunnel to Windows 10 on Mums PC", "ssh": { - "port": 23456, + "port": 22, "options": ["-f", "-N"], "forwardings": [ { - "local_port": 3308, + "local_port": 3307, "remote_host": "localhost", "remote_port": 3306 } ], - "host": "192.168.1.101" + "user": "daddy", + "host": "192.168.0.2" } }, { - "name": "Tunnel 3", + "name": "Tunnel to Termux on Pixel", "ssh": { - "port": 34567, + "port": 22, "options": ["-f", "-N"], "forwardings": [ { - "local_port": 3309, + "local_port": 3308, "remote_host": "localhost", "remote_port": 3306 } ], - "host": "192.168.1.102" + "user": "defaultuser", + "host": "192.168.0.96" } } ] } - \ No newline at end of file