Linux的iptablesredirect

我是一个ISP,我需要暂停一个消息,没有支付的客户。 对于他们访问的每个网页,他们必须看到“暂停”(端口80),所有其他端口需要closures。 我怎样才能做到这一点? 谢谢。

你设置了Apache的默认网站托pipe任何信息,你想通过。

你告诉apache显示任何请求的消息:

ErrorDocument 404 /index.php 

你将客户端的[10.1.2.3]stream量redirect到你的apache [我假设它运行在你的路由器上]:

 iptables -t nat -A PREROUTING -s 10.1.2.3 -p tcp --dport 80 -j REDIRECT --to localhost:80