> I have a situation where i need to redirect every X outbound http request > to local web server (witch will remind users to pay for the internet ) > > ideally i could do it with this rule: > rdr pass on $int_if proto tcp from <not-payed> to port www -> 127.0.0.1 > port 80 probability 20%
it sounds like you need a smart proxy that will analyze the traffic and only do this redirection for requests that look like web pages. a user loading 1 page with 25 graphics on it may trigger 26 http requests and if you are trying to redirect every 20th request, the user would just see a page with 1 broken image (since the request for the 19th image would result in trying loading your html reminder page as an image instead) and would not see your reminder page content.
