50

charles 端口转发

 4 years ago
source link: https://www.tuicool.com/articles/ueUNriJ
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

本文参考: charles 端口转发

端口转发

端口转发(Port forwarding),有时被叫做隧道,是安全壳(SSH) 为网络安全通信使用的一种方法。端口转发是转发一个网络端口从一个网络节点到另一个网络节点的行为,其使一个外部用户从外部经过一个被激活的NAT路由器到达一个在私有内部IP地址(局域网内部)上的一个端口。

7Fz22ui.png!web

端口转发使您能够将本地TCP或UDP端口透明地转发到远程主机和端口。 所有在端口的请求和回复可能会记录在查尔斯。

端口转发流量记录在Charles中作为 socket//hostport/URL

如果您有要使用Charles监控的非HTTP应用程序,则端口转发非常有用。

将端口创建到原始目标服务器,然后将客户端应用程序连接到本地端口;

端口转发对客户端应用程序是透明的,并使您能够查看Charles先前可能无法使用的流量

例子

您可以将本地主机上的TCP端口2525转发到远程主机上的端口25。

然后当您连接到localhost时:2525 Charles将透明地将流量转发到远程主机,就像您直接连接一样。

您会看到在Charles中记录的流量为 socket//localhost2525 /。

当然了,这些功能我平时用不多;

本文参考: https://www.axihe.com/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK