Home  >  Article  >  Backend Development  >  怎么组建这样的服务器

怎么组建这样的服务器

WBOY
WBOYOriginal
2016-06-13 11:10:01800browse

如何组建这样的服务器
一台服务器apache+php(ip:192.168.1.29)
可以访问外网。

其内网的电脑,也能访问到此服务器。但不能访问外网,就是不能打开www.csdn.net..可以打开192.168.1.29

但是,
我要实现
当,内网访问192.168.1.29时。运行的是www.cctv.com的直播。就是把服务器配成一台服务器,让内网通此其,可以访问外网。


fopen是不行的。因为此函数客户端,也一定要连网才行。
------解决方案--------------------
简单点理解就是把192.168.1.29作为网关,这种事,有现成的协议例如PPTP来做,但用PHP实现起来困难重重

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn