Monthly Archives: December 2016

PowerShell: Stop and/or Start a command at certain date/time

bschelst/ December 31, 2016/ PowerShell/ 0 comments

Hello, In addition to “PowerShell: Run command at certain date/time”, we got the request to include a start time also.In the script below, we are doing such thing. (write-host commands are in Dutch tho). In case the user specifies a valid start date/time, the script will start the program. (example program).If the user specifies a valid date/time, the script will kill that program. 

Read More

PowerShell: Stop command at certain date/time

bschelst/ December 31, 2016/ PowerShell/ 0 comments

Sometimes it can be handy to automatically stop a process at a certain time.I did this using the following powershell script. The script will first ask at what time it needs to be stopped. You can specify seconds if needed, but not required, or you can specify a date. Even milliseconds, but keep in mind that it will only run with 100

Read More

Fail2ban: show active jails

bschelst/ December 31, 2016/ Linux/ 0 comments

Fail2ban is a daemon that can be used to monitor the logs of services and ban clients that based on incorrect behaviour.A must have on your Linux system.But sometimes you can forget enabling the correct jails, therefore always check the active jails on your system.This can be done with the “fail2ban-client” command:  #> fail2ban-client status Executing that will show you the

Read More

ModSecurity: Access denied with code 403 (phase 2). Woocommerce

bschelst/ December 31, 2016/ Linux/ 0 comments

If you are using WordPress & Woocommerce in combination with mod_security2, you may have some false positives.In case you are having issues, you can use the Apache (.htaccess for example) “whitelist” below. This of course as an example.   <LocationMatch “/”>   SecRuleRemoveById 910006 # Google robot activity – Useful in someways but noisy for sites where you want them crawled

Read More

Postfix: Our system has detected that this message does not 550-5.7.1 meet IPv6 sending guidelines

bschelst/ December 30, 2016/ Linux/ 0 comments

Ipv6…nice. But using Ipv6 when sending emails to google can be a pain in the *ss.It is possible that you get the following message in your postfix logs:  Our system has detected that this message does not 550-5.7.1 meet IPv6 sending guidelines regarding PTR records and authentication 550-5.7.1 As workaround you can configure postfix to send emails using ipv4 when

Read More