LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 794|回复: 4

怎么通过ROUTER发布自己的WEBSITE呢?

[复制链接]
发表于 2003-9-19 18:44:08 | 显示全部楼层 |阅读模式
先说说我们家上网的情况,我们家用一台PLANET的ROUTER联接有线MODEM共享上网,一共拖了四台电脑,我用APACHE+PHP+MYSQL建立了一个坛论,在别人的机子上直接输入我的内网IP: http://192.168.0.23 就直接可以上我自建的网站。
可是要如何联接到外部,让外部的人也能看我的网站呢?

我看过ROUTER的设置,里面有个Virtual Servers选项,
Virtual Servers and Special Application
If you configure the gateway as a virtual server, remote users accessing services such as Web or FTP at your local site via public IP addresses can be automatically redirected to local servers configured with private IP address. In other words, depending on the requested service (TCP/UDP port number), the gateway redirects the external service request to the appropriate server.
You can define up to 10 application profiles and If you had set many WAN Alias IP's, select one of the public IP's as the Virtual Server. Some applications require multiple connections, such as Internet gaming, video conferencing, Internet telephony and others. These applications cannot work when Network Address Translation (NAT) is enabled. If you need to run applications that require multiple connections, enter the service ports associated with an application.

我将1-170的prot都联接到我的内网IP:192.168.0.23上了。

而这个ROUTER的wan地址如下:
IP Address :        218.186.102.11       
Subnet Mask :        255.255.240.0       
Default Gateway :        218.186.96.1       
DNS :        202.156.1.58


请问我要如何才能让外部的人能看我内建的WEBSITE呢?盼请指教,不胜感谢!
发表于 2003-9-19 19:03:41 | 显示全部楼层
设置好了的话 http://218.186.102.11/ 就是你的website了。

不过从IP来看你用的SCV,据我所知,端口80是被SCV屏蔽了的。
所以你只能选用其他的端口,比如
http://218.186.102.11:8888/
并把8888映射到内部的80端口上。
 楼主| 发表于 2003-9-19 19:47:16 | 显示全部楼层

谢谢!

我的正是SCV!
谢谢你啊,大侠!你真是太好了!一句话点醒梦中人!
嘻嘻。
 楼主| 发表于 2003-9-19 19:55:05 | 显示全部楼层
是我的ROUTER把80端口设成远程调控的默认端口了,我把这个端口改掉,就可以登陆了!
发表于 2003-9-20 20:24:33 | 显示全部楼层
想不到在这里还能遇上身在新加坡的"你"..
我也是一直用SMC 7004VBR router上网.就是奇怪无论怎么设置.我的FTP和WEB SERVER只能用于内网.外网访问不到.

笨人只好每当需要从外网访问主机.都是不用router...kaka
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表