HTTP Redirect/zh cn

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 08:09, 12 June 2010 (edit)
Leangjia (Talk | contribs)
(New page: {{languages|HTTP Redirect}} ''请选择菜单项:"Administration管理" > "HotSpot" > "HTTP Redirect"'' Image:V23-hotspot-menu.png<br> Image:v23-http-redirect.png 此选项允...)
← Previous diff
Revision as of 08:10, 12 June 2010 (edit) (undo)
Leangjia (Talk | contribs)
(HTTP源网络)
Next diff →
Line 10: Line 10:
===HTTP源网络=== ===HTTP源网络===
-<The following tested in DD-WRT v24-sp2 (11/25/08) std - build 10991M NEWD Eko>+<下面的测试是基于DD-WRT v24-sp2 (11/25/08) std - build 10991M NEWD Eko>
当使用此功能,您必须指定在LAN端子网,你想成为受重定向。例如,如果您有DHCP设置炮制成192.168.1.xx你的电脑,然后输入192.168.1.0作为您的源网络。这是不可能的重定向多个源网络代理使用此功能。具体来说,如果你输入0.0.0.0作为源网络then DD - WRT的写入的NAT表,以便获得重定向没有交通虚假条目。 当使用此功能,您必须指定在LAN端子网,你想成为受重定向。例如,如果您有DHCP设置炮制成192.168.1.xx你的电脑,然后输入192.168.1.0作为您的源网络。这是不可能的重定向多个源网络代理使用此功能。具体来说,如果你输入0.0.0.0作为源网络then DD - WRT的写入的NAT表,以便获得重定向没有交通虚假条目。

Revision as of 08:10, 12 June 2010

请选择菜单项:"Administration管理" > "HotSpot" > "HTTP Redirect"

Image:V23-hotspot-menu.png
Image:v23-http-redirect.png

此选项允许使用一个代理服务器的HTTP重定向器。虽然它的配置页面上的热点所在,热点不必为这个选项正确启用。HTTP重定向重定向所有作品端口80通信从LAN / WLAN到一个指定的地址可像鱿鱼方面,CCProxy,或Winproxy HTTP代理服务器。此功能特别适合在学校过滤内容,图书馆,企业等有用

这不是完全清楚了“的HTTP源网络”设置的目的是。在我的测试,在这里设置的IP地址为客户端计算机只有一个没有差异。无论是代理的所有客户。据BrainSlayer“你可以设置一个源网络,排除了代理服务器”,从而使代理服务器可以从同一个路由器具有HTTP重定向它的互联网功能。到目前为止,我的测试此功能,使用v23 SP2的一个WRT54G,没有产生良好的效果。

HTTP源网络

<下面的测试是基于DD-WRT v24-sp2 (11/25/08) std - build 10991M NEWD Eko>

当使用此功能,您必须指定在LAN端子网,你想成为受重定向。例如,如果您有DHCP设置炮制成192.168.1.xx你的电脑,然后输入192.168.1.0作为您的源网络。这是不可能的重定向多个源网络代理使用此功能。具体来说,如果你输入0.0.0.0作为源网络then DD - WRT的写入的NAT表,以便获得重定向没有交通虚假条目。

DD-WRT actually creates two NAT table entries when this feature is enabled. The first entry makes sure that traffic from the source network destined for your router's web pages are not redirected but instead go directly to the router. The second entry redirects all other traffic to the proxy. The way this first entry is created makes it impossible to loose your connectivity to the router even if you make a mistake in entering data here.

You can use this feature to implement a HTTP-Proxy (like squid) connected on the LAN side of your router if you configure the proxy to have a different subnet than the rest of your computers. The idea would be for your proxy to be on its own special subnet (ie. 192.168.10.10) with all the other computers being in the standard subnet (ie. 192.168.1.xx). You would set the HTTP Destination IP to 192.168.10.10 and the HTTP Source Network to 192.168.1.0. DD-WRT would then only redirect port 80 traffic coming from your 192.168.1.0 subnet to your proxy. All other subnets would not be re-directed and the proxy server which needs direct access the destination servers would be able to do its job.

This feature does a reasonable job of adding entries to the NAT table but unfortunatly never deletes them. This means that you can get horribly confused if you make a change to one of these settings and fail to reboot the router since you can have multiple and conflicting entries in your NAT table. So take my advice and do a "Save" followed by a reboot if you make any changes to the settings for HTTPRedirect.

坏HTTP重定向设置

如果你进入你的路由器的HTTP重定向器设置不正确,可能设置你是无法进入Web界面登录,因为您的请求,路由器的Web服务器被重定向到谁不知在哪里。你可以使用Telnet或SSH来解决这个问题。

Telnet登录到路由器。
输入用户名和密码
输入以下命令:

cd /usr/sbin
nvram set http_redirect_enable=0
nvram commit
reboot