Zeroshell as router wifi



condivido la mia esperienza di trasformare un Alix ( gentilmente prestato dal mio amico Michele) per capire come poter far amministrare a Zeroshell anche le reti WiFi.

Non sarei riuscito a realizzare nulla senza il supporto puntuale e preciso di PC Engines da cui ho acquistato tutto il materiale necessario.

Il mio Alix ( di Michele 🙂 ) è predisposto  ad accogliere una espansione   wlm200nx

Compex WLM200NX Atheros 802.11a/b/g/n miniPCI wireless card (for alix)

La fretta non mi ha fatto realizzare che era il caso che insieme alla scheda prendessi anche cavi e antenne ma sempre grazie la PC Engine ho risolto ed aggiunto un secondo ordine:

pigsma :Pigtail cable I-PEX -> reverse SMA

antsma  :Antenna reverse SMA 2.4 GHz


L’assemblaggio  è stato semplice e efficace. Riporto le immagini della lavorazione




A questo punto non rimane che effettuare la configurazione. Prima via console attraverso il  menu wifi e dopo dalla console web comparirà la nuova  interfaccia wifi che potrete trattare come una normale interfaccia di rete a cui applicare tutte le configurazioni così come fareste su di una normale Ethernet.

Ho sperimentato sia la configurazione AP e che client in entrambi i casi  il risultato è stato quello atteso .. un successo.


buon sera a tutti voi





rabbitmq on smartos zone


I was in trouble with rabbitmq-server 🙁

I’m working on a cluster rabbitmq on SmartOS zone  and I need to install it and I found three post to solve my problem:

    1.  SMLLR
    2.  justinrainbow
    3.  ArchWiki

on first post the trick  has been to reinstall rabbitmq  as binary and start if as “root”

The second post show me that I need to add two variable if rabbitmq has been installed from pkgin


The last show me that  the correct home variable is


so I have rabbitmqctl status  working on node.


My route:

pkgin in rabbitmq-3.6.10 

add into /opt/local/etc/rabbitmq/rabbitmq-env.conf



and enable epmd an then rabbitmq

svcadm enable svc:/pkgsrc/epmd:default

svcadm enable svc:/pkgsrc/rabbitmq:default
[root@d60bf003-ad93-6262-82d4-d61c0f7ec4ad ~]# rabbitmqctl status 

Status of node 'rabbit@d60bf003-ad93-6262-82d4-d61c0f7ec4ad'




      {ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},

      {ssl,"Erlang/OTP SSL application","8.1.1"},

      {public_key,"Public key infrastructure","1.4"},



          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",


      {xmerl,"XML parser","1.3.13"},

      {os_mon,"CPO  CXC 138 46","2.4.2"},

      {mnesia,"MNESIA  CXC 138 12","4.14.3"},

      {asn1,"The Erlang ASN1 compiler version 4.0.4","4.0.4"},

      {compiler,"ERTS  CXC 138 10","7.0.4"},

      {syntax_tools,"Syntax tools","2.1.1"},

      {sasl,"SASL  CXC 138 11","3.0.3"},

      {stdlib,"ERTS  CXC 138 10","3.3"},

      {kernel,"ERTS  CXC 138 10","5.2"}]},



     "Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:8:8] [async-threads:128] [kernel-poll:true] [dtrace]\n"},




































Is there any mechanism that prevents NAT setup in host-only networks?

Questo mi ha salvato.



Due to security reasons Parallels Server does not allow outgoing traffic from non-allowed IPs from VMs.

Network filtering is managed by the following values in VM configuration file:


PreventIpSpoof — if it is enabled outgoing packets are dropped if its source IP is not one of IPs assigned to this VM;

PreventMacSpoof — if its is enabled outgoing packets are dropped if its source MAC is not VM’s MAC;

PreventPromisc — if it is enabled incoming packets addressed to non-VMs MAC are dropped.

For nested installations:

For Parallels Virtuozzo Containers installed inside of a Virtual Machines it is recommended to disable all these filters in order to provide full network connectivity.

To allow host-routed containers have network connectivity with servers that reside outside of Parallels Server host it is necessary to disable PreventIpSpoof.

To enable bridged networking for containers running in the VM you should disable PreventPromisc and PreventMacSpoof.

All filters can be disabled using following command:

# prlctl set VMNAME --ifname IFACE_NAME --preventpromisc no --ipfilter no --macfilter no

Reboot of VM is required to apply the changes.

moodle and ssl proxy server

How to configure moodle with a frontend ssl ?

VM1: (nginx + letsencrypt)  ——>VM2: apache2 with moodle


Setting up your moodle

On a basic moodle site, it will be simple to set up https. Simply edit config.php and change http:// to https:// in $CFG->wwwroot.

However if you are using a proxy or load balancer, depending on your setup you may need to set $CFG->sslproxy to 1, and not use SSL on the moodle server. Then the load balancer or proxy server can communicate directly to your moodle site, but serve to the clients over SSL.


$CFG->sslproxy  = 1;

systemctl restart apache2

Per esempio:

how to use sensu-install -p


io ho capito solo adesso come usare

sensu-install -p   nome-plugin

ora mi chiedevo dove li trovo ??? Poi mi sono accorto che sul sito <<>> i nomi sono del tipo




bene non ci crederete ma basta eseguire

sensu-install -p elasticsearch

sensu-install -p memory-checks

ed ecco il nostro plugin verrà messo in /opt/sensu/embedded/bin

fine dei giochi

.. meglio tardi che mai 🙂

my network on Hetzner

QoS and smb protocol

A long …short story :

SMB (tcp/445)  doesn’t work with QoS.

rabbimq-server on lx branded zone

I’m playing with Sensu in SmartOS LX zone

imgadm avail | grep 23ee2dbc-c155-11e6-ab6d-bf5689f582fd

23ee2dbc-c155-11e6-ab6d-bf5689f582fd centos-7 20161213 linux lx-dataset 2016-12-13
root@d8-cb-8a-bf-92-f0 ~ # imgadm info 23ee2dbc-c155-11e6-ab6d-bf5689f582fd
“manifest”: {
“v”: 2,
“uuid”: “23ee2dbc-c155-11e6-ab6d-bf5689f582fd”,
“owner”: “00000000-0000-0000-0000-000000000000”,
“name”: “centos-7”,
“version”: “20161213”,
“state”: “active”,
“disabled”: false,
“public”: true,
“published_at”: “2016-12-13T16:56:50Z”,
“type”: “lx-dataset”,
“os”: “linux”,
“files”: [

“sha1”: “57e381704ced765d7ed19ad11efc04d521f608ed”,
“size”: 261271891,
“compression”: “gzip”
“description”: “Container-native CentOS 7.3 64-bit image. Built to run on containers with bare metal speed, while offering all the services of a typical unix host.”,
“homepage”: “”,
“requirements”: {
“networks”: [
“name”: “net0”,
“description”: “public”
“min_platform”: {
“7.0”: “20160317T000105Z”
“brand”: “lx”
“tags”: {
“role”: “os”,
“kernel_version”: “3.10.0”
“zpool”: “zones”,
“source”: “”

The  Sensu documentation  tell us how to install rabbitmq-server  and all is working as expect. I was in trouble just with
systemctl restart rabbitmq-server
The command after a lot of time answer me with error 🙁     After google-ing I have to use my resource.

Systemd call rabbitmq-server.service ?

[root@sensu01 ~]# systemctl status rabbitmq-server -l
● rabbitmq-server.service – RabbitMQ broker
Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-04-20 17:39:51 UTC; 2min 51s ago
Process: 6672 ExecStop=/usr/sbin/rabbitmqctl stop (code=exited, status=0/SUCCESS)
Main PID: 7131 (rabbitmq-server)
CGroup: /system.slice/rabbitmq-server.service
├─7131 /bin/sh -e /usr/lib/rabbitmq/bin/rabbitmq-server
├─7361 /usr/lib64/erlang/erts-8.3/bin/beam.smp -W w -A 128 -P 1048576 -t 5000000 -stbt db -zdbbl 32000 -K true -B i — -root /usr/lib64/erlang -progname erl — -home /var/lib/rabbitmq — -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.9/ebin -noshell -noinput -s rabbit boot -sname rabbit@sensu01 -boot start_sasl -config /etc/rabbitmq/rabbitmq -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,”/var/log/rabbitmq/rabbit@sensu01.log”} -rabbit sasl_error_logger {file,”/var/log/rabbitmq/rabbit@sensu01-sasl.log”} -rabbit enabled_plugins_file “/etc/rabbitmq/enabled_plugins” -rabbit plugins_dir “/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.9/plugins” -rabbit plugins_expand_dir “/var/lib/rabbitmq/mnesia/rabbit@sensu01-plugins-expand” -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir “/var/lib/rabbitmq/mnesia/rabbit@sensu01” -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
├─7537 erl_child_setup 65536
├─7625 inet_gethost 4
└─7626 inet_gethost 4
‣ 7131 /bin/sh -e /usr/lib/rabbitmq/bin/rabbitmq-server

So first I check if  /usr/lib/rabbitmq/bin/rabbitmq-server is working on CLI and yes it works.
What’s in /usr/lib/systemd/system/rabbitmq-server.service
[root@sensu01 ~]# cat /usr/lib/systemd/system/rabbitmq-server.service
Description=RabbitMQ broker
ExecStop=/usr/sbin/rabbitmqctl stop

And I found that Type=notify

<<Behavior of notify is similar to simple; however, it is expected that the daemon sends a notification message via sd_notify(3) or an equivalent call when it has finished starting up. systemd will proceed with starting follow-up units after this notification message has been sent. If this option is used, NotifyAccess= (see below) should be set to open access to the notification socket provided by systemd. IfNotifyAccess= is missing or set to none, it will be forcibly set to main. Note that currently Type=notify will not work if used in combination with PrivateNetwork=yes.>>

But we are inside a lx smartos zone so can be some mismatching  between system call  – in this case I’d like to know dtrace, but not until at the moment-

I change the  Unit section in rabbitmq-server.service





In the end systemctl restart rabbitmq-server is working as expect

Podcast of Bryan Cantrill – Persistence and Action

Bryan’s top 3 tips for delivering more value:
  1. Read more
  2. Write more
  3. Be persistent


Il QoS di ZeroShell mediante il generatore di traffico Ostinato


 Analisi del QoS di ZeroShell mediante il generatore di traffico Ostinato


si accettano suggerimenti e correzioni.


Devo ringraziare  il Network Traffic Generator and Analyzer Ostinato che mi ha dato la possibilità di comprendere meglio il QoS.

Di seguito riporto lo schema hw per i test.