我意思就是类似于DNS劫持
例如:
局域网两台电脑,一台做服务器,一台做客户机,没有外网。
我希望用客户机打开www.csdn.net时,跳到的是这台服务器里的网站
或者输入一个公网地址,访问的是这台服务器。
不局限网站,客户机的访问方式可能是多种协议的。
我意思就是类似于DNS劫持
例如:
局域网两台电脑,一台做服务器,一台做客户机,没有外网。
我希望用客户机打开www.csdn.net时,跳到的是这台服务器里的网站
或者输入一个公网地址,访问的是这台服务器。
不局限网站,客户机的访问方式可能是多种协议的。
I can't type Chinese characters, sorry for that.
if you have just 2 PCs, the simplest method is modifing your local hosts file
http://jingyan.baidu.com/article/09ea3ede0600ebc0afde3968.html
if you have more PCs, you can setup a local DNS server, there are bunch of DNS servers you could choose, for instance, ntbind or bind( on linux)
when you hava had a private DNS server, you can let you DHCP server to use that, and all clients will use that automatically.
then, you can setup you own http server, ftp server and so on, to simulate some websites, ftp servers or others. the only thing you should remember is to put you domain address to the server you built.
additionlly, you could use special soft-route os for x86 as well, like routeos or hi-spider, they privide an out-of-box solution to meet your requirement.