Skip to content
/ pub-fwd Public

Forward port thought nat using public server

Notifications You must be signed in to change notification settings

weoses/pub-fwd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pub-fwd

Forward port thought nat using public server

                        +--------------------------------------------+                            
                        |         Public server (1.2.3.4)            |                            
               +------- | -public -in 0.0.0.0 4455 -out 0.0.0.0 4444 | -------+                  
               |        +--------------------------------------------+        |                  
    +----------+---------+                                         +----------+---------+        
    |         NAT        |                                         |         NAT        |        
    +----------+---------+                                         +----------+---------+        
               |                                                              |                  
+--------------+-------------+                             +------------------+-----------------+
|        C1 (ssh client)     |                             |          c2 (ssh server)           |
| $ ssh root@1.2.3.4 -p 4455 |                             | -in 1.2.3.4:4444 -out localhost:22 |
+----------------------------+                             +------------------------------------+

About

Forward port thought nat using public server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages