1 | |
---|
2 | +-----------------+ NAT Firewall +--------------------------+ |
---|
3 | | | || || | | |
---|
4 | | web browser +--OO---------------------------------->XX + 0.0.0.0:80 web server | |
---|
5 | | | || || | | |
---|
6 | | | || +--------------------------+ || | | |
---|
7 | | | || | | || | | |
---|
8 | | | || | [ ssh server ] | || | | |
---|
9 | | ssh client +--OO-->+ 0.0.0.0:22 0.0.0.0:22 +<---OO----+ ssh client | |
---|
10 | | | || | | || | | |
---|
11 | | | || | ssh client +--->XX + 0.0.0.0:22 ssh server | |
---|
12 | | | || | | || | | |
---|
13 | +-----------------+ || +--------------------------+ || +--------------------------+ |
---|
14 | |
---|
15 | My Notebook Public Server Private Server |
---|
16 | localhost IP address : A.B.C.D ( private IP address ) |
---|
17 | |
---|
18 | ||| on Private Server |
---|
19 | ||| run following commands |
---|
20 | ||| 'nohup ssh -f -N -R 10000:localhost:22 user@A.B.C.D' |
---|
21 | ||| to generate forward **** |
---|
22 | ||| |
---|
23 | VVVVV 'nohup ssh -f -N -R A.B.C.D:8123:localhost:80 user@A.B.C.D' |
---|
24 | VVV to generate forward ==== |
---|
25 | V |
---|
26 | |
---|
27 | +-----------------+ NAT +--------------------------+ Firewall +--------------------------+ |
---|
28 | | | || | | || | | |
---|
29 | | web browser +--OO-->+ A.B.C.D:8123 +==+ || +==+ 0.0.0.0:80 web server | |
---|
30 | | | || | | | || | | | |
---|
31 | | | || | [ ssh server ] | | || | | | |
---|
32 | | ssh client +--OO-->+ 0.0.0.0:22 0.0.0.0:22 +<-+-OO-+--+ ssh client | |
---|
33 | | | || | | | || | | | |
---|
34 | | | || | +-------- ssh client | | || | | | |
---|
35 | | | || | | | | || | | | |
---|
36 | | | || | +---> 127.0.0.1:10000 +**+ || +**+ 0.0.0.0:22 ssh server | |
---|
37 | | | || | | || | | |
---|
38 | +-----------------+ || +--------------------------+ || +--------------------------+ |
---|
39 | |
---|
40 | My Notebook Public Server Private Server |
---|
41 | localhost IP address : A.B.C.D ( private IP address ) |
---|