- 转发内网服务端程序的流量到公网,从而公网可以访问到内网的资源。
-
内网程序首先像公网转发程序注册,公网程序bind指定的端口,之后所有的连接,收到数据都会转发到内网程序的连接。
为了兼容现有的服务端程序,不修改代码,client实现代理功能。 -
-
依赖muduo
./do_cmake.sh && cd build && make
-
./proxy_server
,如果需要修改监听ip和端口需要修改文件server.cc
-
./proxy_client -s server_ip -p server_port -t transform_port -S proxy_server_ip -P proxy_server_port
-
依赖muduo
-
Notifications
You must be signed in to change notification settings - Fork 0
zhangke96/Proxy
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published