Connect two clients behind NAT
来源:互联网 发布:苏宁程序员工资待遇 编辑:程序博客网 时间:2024/05/22 14:40
原贴:http://cb.vu/unixtoolbox.xhtml
On client cliuser (from destination to gate):
Connect two clients behind NAT
Suppose two clients are behind a NAT gateway and client cliadmin has to connect to client cliuser (the destination), both can login to the gate with ssh and are running Linux with sshd. You don't need root access anywhere as long as the ports on gate are above 1024. We use 2022 on gate. Also since the gate is used locally, the option GatewayPorts is not necessary.On client cliuser (from destination to gate):
# ssh -R 2022:localhost:22 user@gate # forwards client 22 to gate:2022
On client cliadmin (from host to gate): # ssh -L 3022:localhost:2022 admin@gate # forwards client 3022 to gate:2022
Now the admin can connect directly to the client cliuser with: # ssh -p 3022 admin@localhost # local:3022 -> gate:2022 -> client:22
- Connect two clients behind NAT
- Asterisk behind NAT
- Asterisk behind NAT
- Asterisk Letting SIP clients connect directly
- Asterisk Letting SIP clients connect directly
- Use reverse ssh tunnel to access remote machines behind NAT
- connect two WiFi simultaneously
- xhost access control disabled, clients can connect from any host
- nat connect连接不上的问题
- Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please....
- 解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy...
- AS Error:Connection timed out: connect. If you are behind an HTTP proxy
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please....
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please....
- 编译报错Error:Connection timed out: connect. If you are behind an HTTP proxy, please
- AndroidStudio解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configu
- Http——headers——Content-Type
- Microsoft Office Word 2007 切换窗口后鼠标无法使用问题的解决办法
- rookit for linux 4. hook数据链路层
- 重拾逝去半年的Blog
- 有屎以来最牛B的推理【10只兔子】
- Connect two clients behind NAT
- Developing Practical Wireless Applications
- 什么样的公司程序员待遇好
- The Handbook of Mobile Middleware
- Building Web Sites All-in-One Desk Reference For Dummies
- Ontology的研究和应用
- Understanding IPTV
- Outlook 2007 For Dummies
- Microsoft Platform SDK 选择