Hello,
I have problems to redirect non-paying clients to warning web page. I made dst-nat rule, but it wont redirect. Ok, clients do not have Internet enymore, but they don’t see the warning. My rule:
chain=dstnat src-address=80.x.x.x protocol=tcp action=dst-nat
to-addresses=80.x.x.y to-ports=8001
Where could be problem?? I also tried to put in the rule dst-port=80, but no changes..
(include the dst-port paramter) or your webserver will see all kinds of TCP traffic redirected to it which it cannot really handle (SMTP, FTP, …).
If you made sure you have a webserver running on port 8001 at the address you redirect to, also take care to configure it so every errorpage (especially the 404 one) will show your “we’re missing money from you”-page. (As your client will perhaps request http://www.someaddress.com/this/other/page.html - and your webserver won’t have that special file…)
If that doesn’t work, try to explain better what acutally happens (“it won’t redirect, but they do not have internet”?).
Redirection to domain address is also possible, but then transparent proxy should be enabled (web-proxy test package). 80 port number requests will be maintained by the proxy, but web-proxy test package access-list contains ‘redirect-to’ option, that might be used to redirect required requrest to the specific web-page.