eVOX PBX connecting to E1-GW

To interconnect e1 Gateway (or any SIPGW) to eVOX-PBX (or other PBX , like FreePBX, concept is the same):

There is two method:
First Method :
E1-GW sign in to IPPBX.  To use this method, create an Dummy Extension at IPPBX, and let the E1GW to sign in to IPPBX.  Then Create a SIP trunk for IPPBX to route outbound call via E1GW.
To receive call, create DID number as Extension in IPPBX, then follow-me to route to respective destination (* Take note, to do in this way, Inbound route will not work)
** Disadvantage of this method is , all incoming call, the caller’s callerid will not show in IPPhone (or destination extension).  All incoming call’s caller id will show as the Extension of E1-Gw sign to IPPBX. (As if that extension receive call and pass to other local extension)

Second method :
This method are more complicated to setup, there is no need to register of extension from e1-gw to ippbx, call are pass by inbound route, and via trusted sip trunk .

1) at eVOX PBX

A) create sip trunk :
Outgoing Setting

TRUNK NAME : E1_GW_out
PEER Detail:
 host= 192.168.0.111  # IP-ADDRESS-OF-E1-GW
 type=friend
 qualify=yes
 port=5060
 context=from-pstn
 insecure=very        # port,invite {latest version of asterisk}

Incoming Setting

USER Context : E1_GW_in
USER Detail : 
 disallow=all
 allow=alaw&ulaw
 canreinvite=no
 context=from-pstn
 dtmfmode=rfc2833
 qualify=yes
 insecure=very       # port,invite {latest version of asterisk}
 host= 192.168.0.111 # IP-ADDRESS-OF-E1-GW
 type=friend

Registration : NO-NEED

B) Then, create inbound route for DID to route to specific Extension.

2)Setting at E1 Gateway
– Create SIP Trunk without sign in to eVOX PBX
– If sign in to eVOX PBX, then all inbound call will appear the signed in Ext number (as discuss in Method 1 above)
– Take note of “Register to Remote” -NO
e1-GW-Trunk

WordPress XML RPC attack

When your wordpress blog keep down , not enough connection, while you not expecting that much of traffic, check the web server log see if you can get this, and get a lot of this :

[24/Apr/2016:18:49:01 +0800] “POST /xmlrpc.php HTTP/1.1” 500 585

You may already get attack by xmlrpc.

To disable xmlrpc :

Download and activate plugin , “Disable XMP-RPC” from word press, activate it will disable xml rpc, and issue will solve.

Windows : Adding Multiple IP Addresses at Once

In Microsoft Windows Server Environment :
We use netsh with FOR loop for quickly add IP to windows system
FOR /L %variable IN (start,step,end) DO command

So we could easily add every IP address from an entire subnet using this command:

FOR /L %A IN (0,1,255) DO netsh interface ipv4 add address “Local Area Connection” 192.168.1.%A 255.255.255.0

Addting New Disk to XenServer

Here is adding new disk to XenServer

1. Login to Console
2. fdisk -l to identify which one is the disk, for example /dev/sdb
3. enter following command –

xe sr-create name-label=<Name of Storage> shared=false device-config:device=<Path of the Storage device> type=lvm

Or :
xe sr-create name-label=sdb-disk shared=false device-config:device=/dev/sdb type=lvm

OpenVZ – enable tun / tap / pop

Before we can use PPP in the container, we must enable the PPP kernel modules on the host system:

modprobe tun
modprobe ppp-compress-18
modprobe ppp_mppe
modprobe ppp_deflate
modprobe ppp_async
modprobe pppoatm
modprobe ppp_generic
vzctl set [VEnumber] --features ppp:on --save
vzctl set [VEnumber] --devnodes net/tun:rw --capability net_admin:on --save