Blog

Zerif supports a custom frontpage

Centos 7 and firewalld to allow SNMP

We need to add a profile for SNMP to use UDP 161.  Edit /etc/firewalld/services/snmp.xml <?xml version=”1.0″ encoding=”utf-8″?> <service> <short>SNMP</short> <description>SNMP protocol</description> <port protocol=”udp” port=”161″/> </service> 2.  Reload the firewall:  firewall-cmd –reload 3.  Add it to the public zone:  firewall-cmd –zone=public –add-service snmp –permanent 4.  Reload the firewall again. It should be working now.  

Postgresql setup/commands

Config file path [pg_hba.conf]:   Centos:  /var/lib/pgsql/data/ Ubuntu:  /etc/postgresql/ List databases:  \l or \list List of roles:  \du Create roles:  CREATE ROLE role-name; Create role with permissions:  CREATE ROLE role-name WITH optional_permissions; Change permissions after role is created:  ALTER ROLE role-name WITH options; See all options:  \h See all options for a particular function:  \h Read more about Postgresql setup/commands[…]

Virtual Servers/Workstations not showing up in WSUS

Issue:  Virtual servers/workstations deployed from the same image do not show up in WSUS.  You notice that in WSUS groups that the machine listing rotates machine names everytime you refresh, but never lists them separately. Cause:  This is caused by having the same SSID when deployed.  When sysprep is not run to prepare the image, Read more about Virtual Servers/Workstations not showing up in WSUS[…]

Rewrite Rule – Force https

Issue:  You have a particular domain on a Windows server that you want to force the URL to rewrite to the SSL certificate that is installed.  ie. http://www.domain.com –> https://www.domain.com Option 1:  If you know how to edit the web.config file, just paste the following text within your system.webserver tags: <rule name=”forceHTTPS” stopProcessing=”true”> <match url=”(.*)” /> Read more about Rewrite Rule – Force https[…]

CBS.log file huge? Can I delete the files?

Problem:  In the c:\windows\Logs\CBS folder, you see that there is a huge cbs.log file and/or other cbspersist_0000.cab files that are huge in size (some over 2Gb).  Can these be deleted? Resolution:  In short, yes, IF you are sure that there is nothing wrong with the system in question.  Typically, if your system is a production Read more about CBS.log file huge? Can I delete the files?[…]

WSUS 3.0 sp2 not showing Windows 2012 servers

Problem:  WSUS does not display the Windows 2012 servers even though group policy has been applied.  You run gpresult /r and see that there are no issues group policy-wise. Resolution:  WSUS needs to be updated with the following patch.  This will allow for the servers to be displayed properly. https://support.microsoft.com/en-us/kb/2734608

Extended partition via diskpart, Windows not showing extra space

Issue:  After adding disk space to a VM, you run diskpart to extend the partition. Diskpart shows it is extended, but Windows explorer does not recognize the extra disk space.                     Resolution:  This is a pretty simple fix.  While still in diskpart, make sure you are Read more about Extended partition via diskpart, Windows not showing extra space[…]

Postfix outgoing address change

ISSUE:  When you install Postfix, the default outgoing address on that server will be apache@machinename.local. RESOLUTION:  To change the outgoing address or the FROM address from your mailings, make the following changes: edit the /etc/postfix/main.cf file change the mydomain field to your mail domain [mydomain = mydomain.com] Add the following text to the bottom of Read more about Postfix outgoing address change[…]

URL Rewrite Module in Windows 2012, where is it?

Issue:  Where is the URL Rewrite Module in Windows 2012? Description:  You may have noticed that after installing all the features in the IIS role in Windows 2012, that the URL Rewrite Module is NOWHERE to be found.  This feature was part of the Windows 2008/R2 implementation, but for Windows 2012, it is, what they Read more about URL Rewrite Module in Windows 2012, where is it?[…]