Wednesday, October 9, 2013
Cloud & Hosted Security
Wednesday, March 27, 2013
Document Active Directory with GPO Reports
We have had a big push to more acuratly document our network. Being a big fan of GPOs we have quite a few of them. Around 160 of them actually. So I wanted to document them but without having to look through each one and write every setting down.
Luckily the Group Policy MMC has a neat little report you can export. Whats even neater is you can call that up with PowerShell and export it without using the GUI. So you can export every setting in all your GPOs with a single script.
We like to keep records of what changes so each time you run this it puts the reports into a dated folder.
Here is that script.
Import-Module GroupPolicy
$year = get-date -uformat "%Y"
$month = get-date -uformat "%m"
$day = get-date -uformat "%d"
New-Item -ItemType directory -Path C:\GPOReports\$year\$month\$day -ErrorAction silentlyContinue
$GPOs = Get-GPO -All
$pattern = "[{0}]" -f ([Regex]::Escape([String][System.IO.Path]::GetInvalidFileNameChars()))
foreach($GPO in $GPOs){
$filename = $GPO.DisplayName
$filename = [Regex]::Replace($filename, $pattern, ' ')
$path = 'C:\GPOReports\' + $year + '\' +$month + '\' + $day + '\' + $filename + '.htm'
Get-GPOReport -Guid $GPO.Id -ReportType HTML -Path $path
}
Friday, March 8, 2013
Spreading the word about Solarwinds
SolarWinds has a whole set of tools for whatever your needs are from standard network monitoring to configuration management and security event management. The great thing about all their products is they offer some of the highest quality support I have ever dealt with. Their support is responsive and they really know the products they support.
If you’re looking at getting something for network management checkout the solutions from SolarWinds.
Friday, February 8, 2013
CentOS & RHEL 6.3 missing libnetfilter_queue
I am no Linux expert so it bugs me when I have to go hunting for packages to meet my requirements. In this case I was trying to setup a new CentOS 6.3 development VM for my project OpenNOP. To build OpenNOP it requires libnetfilter_queue & libnetfilter_queue-devel. These are very popular packages now and most distro have them out the door. Debian, Fedora, openSuSE are the ones I know of to include these packages. Now that would be fine if these were burried away down in some "extra" or "contrib" repo but no they just dont seem to exist. Redhat has not packaged them for RHEL thus CentOS does not have them either.
Well to finally end my frustration I was able to find a repo that contains these packages for me and from a trusted source. ClearOS the gateway appliance based on CentOS has built packages for libnetfilter_queue and libnetfilter_queue-devel.
Just create a new repo and enable them to install the packages. Then disable them when finished. They offer almost all the same packages as the RHEL/CentOS repos so we want to be very careful when using these. Be even more careful when trying to update them.
nano /etc/yum.repos.d/ClearOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
#
# Added Custom Repo for libnetfilter_queue
#
#base - packages by ClearOS
[clearos]
name=ClearOS-$releasever - Base
#mirrorlist=http://mirror.clearfoundation.com/?release=$releasever&arch=$basearch&rep$
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
baseurl=http://mirror.clearfoundation.com/clearos/community/$releasever/os/$basearch/
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#
# Added Custom Repo for libnetfilter_queue
#
#addons - packages by ClearOS
[addons]
name=ClearOS-$releasever - Addons
#mirrorlist=http://mirror.clearfoundation.com/?release=$releasever&arch=$basearch&rep$
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
baseurl=http://mirror.clearfoundation.com/clearos/community/$releasever/addons/$basearch/
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6