RE: [users@httpd] RE: how to redirect ip ranges to warning page

2024-10-31 Thread Marc
> [...] > > > If you're using ip tables, you can re-route the request to a > different > > > TCP port and configure a vhost that serves the chosen document > for any > > > request to any path. > [...] > > Yes this is probably the most efficient. I am surprised this seems to > work

RE: [users@httpd] RE: how to redirect ip ranges to warning page

2024-10-31 Thread Marc
> > > I am testing with this now. Only thing I probably am stuck with is > having this in GlobalLog. > > you can turn off your GlobalLog if you add an > [env=[!]environment-variable] statement and > setenv that environment-variable in your new vhost. > https://httpd.apache.org/docs/2.4/mod/mod_lo

RE: [users@httpd] RE: how to redirect ip ranges to warning page

2024-10-31 Thread Marc
> > > I prefer to return there everything with 4xx return code, but can't get > this for / > > Use an empty directory as the documentroot, disable mod_autoindex. Use > a highish debug level to check I am for now sticking to virtualhost only configs as I don't want to change global settings. So

Re: [users@httpd] RE: how to redirect ip ranges to warning page

2024-10-31 Thread Rainer Canavan
On Thu, Oct 31, 2024 at 2:12 PM Marc wrote: > [...] > > If you're using ip tables, you can re-route the request to a different > > TCP port and configure a vhost that serves the chosen document for any > > request to any path. [...] > Yes this is probably the most efficient. I a

RE: [users@httpd] RE: how to redirect ip ranges to warning page

2024-10-31 Thread Marc
> > > > > > > > > > > I am blocking most of amazon,google,azure clouds with ipsets. I > also seem > > > to have added (automatically) ranges that were abusive from > apple safe > > > browsing (or so?) > > > > > > I would like to remove these ip addres

Re: [users@httpd] RE: how to redirect ip ranges to warning page

2024-10-29 Thread Frank Gingras
On Tue, Oct 29, 2024 at 12:25 PM Rainer Canavan wrote: > On Tue, Oct 29, 2024 at 5:11 PM Marc wrote: > > > > > > > > > > > I am blocking most of amazon,google,azure clouds with ipsets. I also > seem > > > to have added (automatically) ranges that were abusive from apple safe > > > browsing (or s

Re: [users@httpd] RE: how to redirect ip ranges to warning page

2024-10-29 Thread Rainer Canavan
On Tue, Oct 29, 2024 at 5:11 PM Marc wrote: > > > > > > > I am blocking most of amazon,google,azure clouds with ipsets. I also seem > > to have added (automatically) ranges that were abusive from apple safe > > browsing (or so?) > > > > I would like to remove these ip addresses of apple safe brows

[users@httpd] RE: how to redirect ip ranges to warning page

2024-10-29 Thread Marc
> > > I am blocking most of amazon,google,azure clouds with ipsets. I also seem > to have added (automatically) ranges that were abusive from apple safe > browsing (or so?) > > I would like to remove these ip addresses of apple safe browsing from the > tcp filter, but I want httpd to redirect al