IP Firewall

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Gilroy
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Tue Jun 09, 2009 11:41 am

IP Firewall

Post by Gilroy » Wed Jun 24, 2009 7:03 am

I'm trying to determine the net result of using the IP Firewall security feature. I've provided the IP Firewall with a single IP address, then attempted to access the store from that IP, but full access is still granted.

I searched the UI codebase and could only see the BannedIPDataSource class referenced in:

\Admin\Orders\ViewOrder.aspx.cs(86)
\Admin\Store\Security\BlockedIPs.aspx(101)

Is this feature even used in 7.0.3?

Thanks, in advance, for the feedback.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: IP Firewall

Post by AbleMods » Wed Jun 24, 2009 7:42 am

My 7.0.3 install works fine with IP firewall. It immediately blocked my browser access to the site.

You won't find much in the UI code regarding the firewall. Most of it is handled in the HTTP handlers within the CommerceBuilder API dll files.

The net result of my test was a blank page. HTTP responded OK but no content was delivered to the browser.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: IP Firewall

Post by mazhar » Wed Jun 24, 2009 7:54 am

Yes its working. In fact prevention code is some where in back end. In order to test don't ban same IP which is used to host the application or Admin IP. Better ban IP of some other machine and then visit application using that machine.

Gilroy
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Tue Jun 09, 2009 11:41 am

Re: IP Firewall

Post by Gilroy » Wed Jun 24, 2009 8:10 am

Thanks! I was accessing our test site over a VPN. The IP address that AC was capturing was my VPN assigned IP. I had banned my local IP. That's why it wasn't working. I have a valid test now.

Is there any way to change the behavior? If we wanted to send the traffic to another custom page, is that possible?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: IP Firewall

Post by mazhar » Wed Jun 24, 2009 8:47 am

Try some IIS based redirection solution. Application throws 403 error code for a banned IP request so try handle that event via IIS.

Gilroy
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Tue Jun 09, 2009 11:41 am

Re: IP Firewall

Post by Gilroy » Wed Jun 24, 2009 10:00 am

Thanks!

Post Reply