Adaptive DDOS IDS firewall

We had a task to build a simple solution for DDOS protection on the learning phase of attack. Main goals were:

  1. To build it fast: We chose Ubuntu … as everything needed is compiled and build in.
  2. Minimum network intervention: We opted for L2/L3 bridge with iptables integration which we plugged between our autonomous system (AS) and internet.
  3. Auto learning offenders: Using honeypot service to distinguish non-legitimate connections. Log source IP address and drop packet with iptables. Using suricata ids to additionally analyze client requests.
  4. Auto block offenders: Using fail2ban to pars logs generated by iptables and suricata and temporary disable all connections from offending sources.
  5. Have some connection limit capabilities: Again we used iptables with connlimit and conntrack modules activated.

Continue reading “Adaptive DDOS IDS firewall”

OpenWrt mass configure simple script

How to remove duplicated VMs in VMM console

  1.  Move machine to another hyper-v host via Failover Cluster Manager Console
  2.  Get ID of duplicated VM
  3. Double check working and duplicated machine
  4. Delete duplicated VM configuration

    Note the -Force option! You are risking to delete your data If you do NOT put -Force.

Exchange mailbox statistics in MB

 

exchange_stats

Openvpn on OpenWRT does not start

with error:

try to add to /etc/rc.local:

 

 

Daewoo Lanos SRS/Airbag test

What you will need:
1. K-Line adapter connected to pin ” J”
2. Chevrolet Explorer 1.7 (free to use)

Procedure overview:
1. Get (or solder) a K-Line adapter.
2. Download Chevrolet Explorer (CE).
3. Connect to ALDL pins:Ground, +12V, J.
4. Turn on ignition. Do not start engine.
4. Start CE, set up COM Port, test adapter.
5. Double click “SRS” button (in orange).
6. Read Errors, clear errors.
7. Remove car key for 10 seconds.
8. Turn on ignition again.

Electric schematic:
l0

Chevrolet Explorer:
ce1

Port setup:
ce2

Adapter test:
ce3

Airbag reset:
CE9

CE10
CE11

K-Line adapter schematic (can’t find original link):
k-line

Postfix tips

Fast and dirty parsing of /var/log/mail.log.

It shows: date, sender, recipient, mail id, status

 

Qmail abracadabras

Sent emails from: sender@example.com

Sent emails from: 10.11.12.13