巧用端口映射 不通过网关开放任意内网
今天给大家说说如何巧用端口映射,不通过网关开放内网的方法。 <p> <strong>一:使用前提</strong></p><p> 需要有一台公网的IP。假如现在我们有一台公网的IP :210.210.21.21</p><p> <strong>二:用到的工具</strong></p><p> 1.lcx.exe</p><p>2.vdic</p><p> <strong>三:方法讲解</strong></p><p> 方法一:用lcx.exe进行映射。</p><p> (1)我们将lcx.exe传到公网IP上,在公网IP上DOS环境下执行 lcx –listen 端口1 端口2</p><p> 如lcx –listen 3030 3166 见下图</p><p> </p><p> </p><p><img src="http://www.3800hk.com/news/UploadFiles_9994/200606/20060627001856701.jpg" border="0" alt=""/></p>此命令的意思是监听3030端口和3166端口,以便和外部进行连接。 <p> (2)将lcx.exe下载到要开放的内网的计算机上,然后在DOS环境下执行 lcx –slave 公网IP 端口 内网IP 端口</p><p> 如lcx -slave 211.211.21.21 3030 172.16.32.153 80 见下图:</p><p> </p><p><img src="http://www.3800hk.com/news/UploadFiles_9994/200606/20060627001857379.jpg" border="0" alt=""/></p>解释一下,这句话的意思是说将内网计算机IP为 172.16.32.153 的80端口(也就是WEB <a class="channel_keylink" href="http://www.3800hk.com/"><font color="#000000">服务</font></a>端口) <p> 映射到公网IP为210.210.21.21的3030端口上,这样,内网和公网的计算机就建立 起了连接。 如果你</p><p> 内网计算机提供WEB<a class="channel_keylink" href="http://www.3800hk.com/"><font color="#000000">服务</font></a>,现在,只要通过外网IP 210.210.21.21和端口3166 可以访问内网的网站了。</p><p> 如图开放IP前,访问地址 <a href="http://172.16.32.153/index.htm"><u><font color="#0000ff">http://172.16.32.153/index.htm</font></u></a></p><p> </p><p><img src="http://www.3800hk.com/news/UploadFiles_9994/200606/20060627001857819.jpg" border="0" alt=""/></p><p>开放IP后,访问地址 http://210.210.21.21:3166/index.htm 见下图</p><p><img src="http://www.3800hk.com/news/UploadFiles_9994/200606/20060627001858154.jpg" border="0" alt=""/></p><p>这句话的意思是在公网计算机上监听端口 5205 然后回到内网计算机上,直接点击运行</p><p> vIDCc.exe,见下图</p><p><img src="http://www.3800hk.com/news/UploadFiles_9994/200606/20060627001858167.jpg" border="0" alt=""/></p>解释一下上面的设置: VIDC<a class="channel_keylink" href="http://www.3800hk.com/"><font color="#000000">服务</font></a>IP,指运行了vidcs.exe进行监听了端口的IP地址,端口指是在公网上监听的端口,上面我监听的是5205端口,bindip指你要开放出去的内网的IP, Bind端口指你内网计算机需要开放的端口(FTP<a class="channel_keylink" href="http://www.3800hk.com/"><font color="#000000">服务</font></a>器端口为21, WEB <a class="channel_keylink" href="http://www.3800hk.com/"><font color="#000000">服务</font></a>端口为80, mail<a class="channel_keylink" href="http://www.3800hk.com/"><font color="#000000">服务</font></a>端口25)你想开放哪个就填哪个吧。 <p> 映射端口指你想通过公网哪个端口提供<a class="channel_keylink" href="http://www.3800hk.com/"><font color="#000000">服务</font></a>。端口由你定,填好之后,我们点”连接”,马上就到收到提示Success to Connect(210.210.21.21:5205,ver:1.2), 说明连接成功。继续点”bind”,同样会收到成功的提示。</p><p> 这样,你的机子的80端口就开放出去了。 访问方法 http://公网ip:映射端口。</p><p> 如 http://210.210.21.21:8080 见下图</p><p> </p><img src="http://www.3800hk.com/news/UploadFiles_9994/200606/20060627001859304.jpg" border="0" alt=""/> 占位编辑页:
[1]