Commit a96e994dee7f0052d9f2e9040e99a8cae81c7ecd
1 parent
02894885
fix: add portforward.sh
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,12 @@ | @@ -0,0 +1,12 @@ | ||
1 | +#ssh -N -f -R 120.26.43.151:8080:0.0.0.0:8080 dangge@120.26.43.151 | ||
2 | + | ||
3 | +account_port=8080 | ||
4 | +game_port=8849 | ||
5 | +gm_port=8880 | ||
6 | +local_ip=192.168.0.100 | ||
7 | +remote_ip=47.118.38.251 | ||
8 | +remote_user=root | ||
9 | + | ||
10 | +ssh -N -f -R ${remote_ip}:${account_port}:${local_ip}:${account_port} ${remote_user}@${remote_ip} | ||
11 | +ssh -N -f -R ${remote_ip}:${game_port}:${local_ip}:${game_port} ${remote_user}@${remote_ip} | ||
12 | +ssh -N -f -R ${remote_ip}:${gm_port}:${local_ip}:${gm_port} ${remote_user}@${remote_ip} | ||
0 | \ No newline at end of file | 13 | \ No newline at end of file |