Rexxer

Some tips for me and other

PFSense + FreeBSD + Multicore = ISSUE

I installed FreeBSD 10 on a multicore server and got strange behavior – network connections were slow and I got many timeouts with 1 client only. The same situation with PFSense 2.2.1 on a multicore server (Atom 8 cores) – server even hangs without any loads. The cause: the maximum of mbclusters were riched – […]

Apache2(Windows) + Wildcard SSL

I’ve got a .pfx and CA’s crt. I have to add it to my Apache’s SSL config. 1. Collect CA’s certificates in one file – cmd for windows: copy /B ServerCA.crt + TrustCA.crt mycert.ca-bundle 2. Export a private key: openssl pkcs12 -in mycert.pfx -nocerts -out mycert_key.pem -nodes 3. Export a certificate: openssl pkcs12 -in mycert.pfx […]

VoIP codecs traffic rate

Codec Bitrate, Kbps Nominal Ethernet Bandwidth, Kbps ~Traffic, Mb/hour G.711 64 87,2 39,24 G.729 8 31,2 14,04 G.723.1 6,4 21,9 9,86 GSM 13,2 28,7 12,92 iLBC 15,2 30,83 13,87 G.723.1 5,3 20,8 9,36 G.726 32 55,2 24,84 G.726 24 47,2 21,24 G.728 16 31,5 14,18

Exchange 2010 + Converting into VM

I have 2 multi role Exchange servers in a DAG (VM + Physical), a load balancer (2 instances in LVS). I need to convert the physical server into VM. 1. Make “Switchover server” or “Move active database” to move DBs to another server from console or via powershell. 2. Check that DBs don’t have sync […]

Avrdude + burning an empty ATMEGA328P-PU + Usbasp

1. I tried to read the chip and check it: avrdude -c usbasp -p m328p avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: error: programm enable: target doesn’t answer. 1 avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. avrdude done.  Thank […]

Events + Scheduler + Email when someone is connected via RDP

Just edit and import XML-file into Task Scheduler. There is XML: <?xml version=”1.0″ encoding=”UTF-16″?> <Task version=”1.2″ xmlns=”http://schemas.microsoft.com/windows/2004/02/mit/task”> <RegistrationInfo> <Date>2013-07-26T06:55:11.4860707</Date> <Author>Me</Author> <Description>Sends emails when server is accessed via RDP (Flag 10 – Remote connect).</Description> </RegistrationInfo> <Triggers> <EventTrigger> <Enabled>true</Enabled> <Subscription>&lt;QueryList&gt;&lt;Query Id=”0″ Path=”Security”&gt;&lt;Select Path=”Security”&gt;*[System[(EventID=4624)]] and *[EventData[Data[@Name=’LogonType’] and (Data=10)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription> <ValueQueries> <Value name=”IpAddress”>Event/EventData/Data[@Name=”IpAddress”]</Value> <Value name=”TargetUserName”>Event/EventData/Data[@Name=”TargetUserName”]</Value> <Value name=”WorkstationName”>Event/EventData/Data[@Name=”WorkstationName”]</Value> <Value name=”eventRecordID”>Event/System/EventRecordID</Value> </ValueQueries> […]

Exchange 2010 + Recreating an account + Undeliverable message

Users complained about “undeliverable message” after recreating an account for the some users. It causes old autocomplete cache on user’s PCs. The Fix from http://community.spiceworks.com/topic/174356-exchange-2010-user-mailbox-recreated:   1. Go into a users machine who has the nk2 cached and open their outlook 2. Create a new mail message and start typing the restored mailbox SMTP address […]

PFSense + DHCP issues from provider

I met a strange issue with an internet channel from my provider: it doesn’t assign an IP (PFSense gets 0.0.0.0 and the provider blocks me) via DHCP or the channel stops working(IP is assigned). I suppose provider has got several DHCP-servers and they are configured with to much security. So, I wrote a script to […]

Netatmo + get your values

You have to visit: https://dev.netatmo.com/doc/sdk/php , create a new application and get id and tooken from it. Then download PHP-SDK and unpack it. Edit config.php – add id, token, user and password for your account on Netatmo site. You can try the example now: php CLI_ClientCredential_Example.php I edited this file to obtain just a string […]

PFSense 2.2 + pkg_add issue

There is pkg_add was replaced by pkg. Just run “pkg” – you will be prompted to install it. Then type e.g.: pkg install mc  

Previous Posts Next posts