úterý 29. července 2014

Windows XP update registry hack

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\WPA\PosReady] "Installed"=dword:00000001

čtvrtek 23. ledna 2014

One hour SIP dumps

tcpdump -nq -s 0 -i any -G3600 -w /tmp/trace/sip-%F--%H-%M-%S.pcap port 5060

Re-enable MDRAID

mdadm –assemble –scan

ssh-agent how-to


#!/bin/bash

ssh-agent
ssh-add /home/user/key

čtvrtek 27. září 2012

GPSD debugging

gpsd -n -N -D4 /dev/ttyUSB0

Linux router iptables quick how-to

# Delete old configuration, if any
# Flush all the rules in filter and nat tables

iptables --flush

iptables --table nat --flush

# Delete all chains that are not in default filter and nat table, if any

iptables --delete-chain
iptables --table nat --delete-chain


# Set up IP FORWARDing and Masquerading (NAT)
# Interface with internet connection

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE

# Interface with nat-ed clients

iptables --append FORWARD --in-interface eth1 -j ACCEPT

#enable IP forwarding

echo 1 > /proc/sys/net/ipv4/ip_forward

Early Asterisk 1.8 SIP TLS problem

I wonder why Asterisk (1.8.3.3) when I configured it properly still didn`t run on TLS port 5061 without any error in logs. So if you are running Debian, install these packages by aptitude and then recompile Asterisk.
openssl libcrypt-dev libxcrypt-dev libcrypto++-dev libssl libssl-dev