How To Unblock an IP Address in CSF

Let’s say that you want to check whether or not a specific IP address, maybe 8.8.8.8 , is blocked by CSF. That’s easy!

csf -g 8.8.8.8

Unblock an IP Address

If the IP address is denied in CSF and you want to remove it, then use this command:

csf -dr 8.8.8.8

CSF then needs to be restarted for the change to take effect:

csf -r

 

https://www.liquidweb.com/kb/how-to-unblock-an-ip-address-in-csf/

mining on ubuntu

sudo apt-get update

sudo apt-get install build-essential libcurl4-openssl-dev git automake libtool libjansson* libncurses5-dev libssl-dev zlib1g-dev

git clone –recursive https://github.com/tpruvot/cpuminer-multi.git

cd cpuminer-multi
git checkout linux

./autogen.sh
./configure CFLAGS=”-march=native” –with-crypto –with-curl
make

vi cpuminer-conf.json

./cpuminer -c cpuminer-conf.json

 

referencia: https://www.nicehash.com/help/cpu-mining

https://github.com/nicehash/xmr-stak/blob/master/doc/compile_Linux.md

https://github.com/fireice-uk/xmr-stak/issues/878

install ubuntu 14.04 on xenserver 6.2

1 – create template based on Lucid

TEMPLATE_UUID=`xe template-list name-label=”Ubuntu Lucid Lynx 10.04 (64-bit)” params=uuid –minimal`
NEW_TEMPLATE_UUID=`xe vm-clone uuid=$TEMPLATE_UUID new-name-label=”Ubuntu Trusty Tahir 14.04 (64-bit)”`
xe  template-param-set other-config:install-methods=cdrom,http,ftp  other-config:default_template=true other-config:debian-release=trusty uuid=$NEW_TEMPLATE_UUID

2 – Modify /usr/lib/python2.4/site-packages/grub/GrubConf.py on the XenServer machine

Line 428, change:

if arg.strip() == “${saved_entry}”:

to

if arg.strip() == “${saved_entry}” or arg.strip() == “${next_entry}”:

http://ubuntuforums.org/showthread.php?t=2216358&page=2&p=13006428#post13006428

http://softlit.blogspot.com.br/2014/05/xenserver-62-and-ubuntu-1404-lts.html

 

 

configure trac on apache 2.2 with ldap authentication

# vi /etc/http/conf.d/trac.conf

<IfModule mod_python.c>
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac
PythonOption TracUriRoot /trac
</Location>
<LocationMatch “/trac/[^/]+/login”>
AuthName “Trac”
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPUrl ldap://[SERVER]:389/OU=People,DC=siarcon,DC=com,DC=br?uid
require valid-user
</LocationMatch>
</IfModule>

Configurar conta VIP SIP no Elastix (Asterisk)

1 – Configurar ips e rotas estáticas, conforme fornecimento embratel

vi /etc/sysconfig/network-scripts/ifcfg-[interface]

vi /etc/sysconfig/network-scripts/route-[interface]

 

2 – Configurar Trunk SIP no Elastix

Trunk Name: [Descrição do tronco]

Outbound Caller ID: <[DDD+numero_tronco_chave]>

Outgoing Settings:

Trunk Name: EMBT-[DDD+numero_tronco_chave]

PEER Details:

type=peer
context=from-pstn
host=[Servidor de registro]
qualify=5000
disallow=all
allow=g729&alaw&ulaw
canreinvite=no
dtmfmode=rfc2833
insecure=port,invite
fromuser=[4 ultimos digitos do tronco chave]
fromdomain=[IP da interface externa]

3 – Confirmar se o tronco está ok

asterisk -vgcr

sip show peers

Deve aparecer OK ao final a linha com o tronco configurado.

Obs:

Não esquecer de configurar rotas de entrada e saída.