store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sat May 18, 2013 4:19 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: Trying to disable some rules, doesn't seem to be working
Unread postPosted: Wed Jul 20, 2011 9:14 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 256
I've added this to my vhost.conf

Code:
<LocationMatch .*>
  <IfModule mod_security2.c>
    SecRuleRemoveById 350147
    SecRuleRemoveById 350148
  </IfModule>
</LocationMatch>


Ran this command:

Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domainname.com


Still getting FP's on both rules. Disabled ASL Core rules just to try to get the site to work. Any suggestions?


Top
 Profile  
 
 Post subject: Re: Trying to disable some rules, doesn't seem to be working
Unread postPosted: Thu Jul 21, 2011 12:25 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3242
Location: Chantilly, VA
Are you just running the rules, or ASL?

If you are just running the rules, where you call this in Apaches configuration and how you call it matters a lot.

First I'd remove the if statements, you dont need them. Second, if you add LocationMatch in the wrong part of apaches config it wont work. You need to make sure you at a point in the vhosts declaration where you can call those statements. Where did you place that in your vhosts declaration?

If you are running ASL, just log into the GUI, pull up the rule manager and tell it to ignore those rules for those vhosts and you are all done.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: Trying to disable some rules, doesn't seem to be working
Unread postPosted: Thu Jul 21, 2011 2:40 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 256
Cool Mike! Was that there before 3.0? Previous disable instructions I had read were to put it in vhost.


Top
 Profile  
 
 Post subject: Re: Trying to disable some rules, doesn't seem to be working
Unread postPosted: Thu Jul 21, 2011 4:36 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
mikeshinn wrote:
First I'd remove the if statements, you dont need them.


I always use the IfModule check. In case I want to debug something and try to just not load mod_security, it's very handy that Apache will still start. :)

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: Trying to disable some rules, doesn't seem to be working
Unread postPosted: Thu Jul 21, 2011 9:28 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3242
Location: Chantilly, VA
Quote:
Cool Mike! Was that there before 3.0? Previous disable instructions I had read were to put it in vhost.


Thats correct, 3.0 has a rule manager you can use to do this.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group