I have tried to search this, but nothing turned up.
I have a pppoe server, and am using Public IP, when a client expires, i have radius which will give him private IP address, how can i redirect these clients to a website ? would a nat rule with dst IP work ?
diffrence is whole subnet or only one IP
src-address=10.20.0.0/24
src-address=10.20.0.10/32
When is whole subnet used then redirection work if redirect only one IP then I see errors in my browser …
I tried to put the rules, the first one came with error that i need to specify tcp/udp, so i choose tcp. but about webproxy, i need to enable the internal webproxy so that redirection can happen, is that right ?
thanks for the help.
or can i masqurade the range and firewall so that it only gets redirected to a certain webpage ?
Just tested again … and as usualy there is problem: first part working fine … I see me (this is my IP) that Im redirected to my web proxy ( 3130 port is my web-proxy) and trafic is growning …
This rule I must disable to surf or I only have errors. Im also tested http://www.myserver.com/blocked.htm which is normaly accesible.
Im using latest ROS 4.3 on routerboard 450.
If I try all this with subnet redirection in firewall … also everything is work (all traffic is transparently redirected to web proxy) but when I enable this second part same story … It was not work … I was using this in older version before v4.X and then is working fine … this rule I was using for some “hackers” to stop him to use my network … but now this is not work for me .
I was accidently try this because Im turn off (disable) transparently redirection whole subnet to web proxy … hm because of 100 % percent procesor usage. Now Im try this on only one IP (same if I redirect whole subnet) to test again and now see that it is not work anymore .
Here is error which firefox give me:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
For me something is wrong with web proxy (redirection not work as before) … or maybe hotspot (which I use).
Strange thing is also when I disable web proxy and watch in status that request is growning … also received from servers and sent to client . Hm web proxy is disabled and in firewall redirection is disabled … I don no why is this hepening … maybe some bug ?
opening http://192.168.11.yyy/blocked.htm
When is nothing enabled open ok
When is firewall redirection rule enabled open ok
When is proxy block and redirection rule enabled not opening
All time web proxy is running but firewall redirect is only my IP for testing …
Hm in this windoze I only have firefox … now Im suspisious about browser … I will test on another PC … another IP … I will tell back result for one hour …
sure, you clients with private addresses still have to be able to access your page w/o proxy
as I said: all accesses to the 192.168.11.yyy are still redirected to webproxy (and NAT rule counts packets). this should not happen if you set NAT rule’s parameters correctly…
No same thing if I use rule on another PC - IP … errors browser cant open any page .
I was also try with whole netwirk transparently redirect to proxy … proxy work … now Im send this via proxy but deny and redirect again not work …
So firewall work OK but not proxy …
I dont no how hotspot working … there is options (enabled) under hotspot user profile Transparent proxy