Testing WAF Redirect

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
srpurdy
Forum Regular
Forum Regular
Posts: 110
Joined: Sat Jan 21, 2012 6:37 pm
Location: Canada

Re: Testing WAF Redirect

Unread post by srpurdy »

mikeshinn wrote:No worries, glad I could help.

The idea behind the port 30000 and https was to redirect to a port/listener that maybe was always open, so even if you shunned the badguy they would still get the page explaining why.
Ah yeah. Wondered about that. It seems like though the shun is usually behind the apache request right now? I guess in a heavy load situation maybe that wouldn't be the case though?

Actually now that I look. the address im going through is actually on cloudflare so access is still allowed even if they get blocked. They just won't be able to do any requests that require my server to kick in. I guess that works. :D
craigedmonds
Forum User
Forum User
Posts: 26
Joined: Fri Feb 17, 2012 3:37 am
Location: Spain

Re: Testing WAF Redirect

Unread post by craigedmonds »

I am trying to set a remote domain for my block page so that if users are blocked for something they get redirected to another domain name on a server outside my hosting network and I grab all the variables over there.

However, in ASL 4.0, if I try and put the following format into the field for WAF_REDIRECT_URL:

http://www.remote_domain.com/blocked/?eventid=%{eventid}&ruleid=%{ruleid}&remote_addr=%{remote_addr}&server_name=%{server_name}&server_port=%{server_port}

......its only saving the first part of the url like this: http://www.remote_domain.com/blocked/?eventid=%{eventid}

IF I check my logs the redirect is actually working, but I am only being sent the eventid and nothing else.

Any ideas?
Post Reply