Category Archives: Hosting

iptables block user-agent: wordpress

iptables -A INPUT -p tcp –dport 80 -m string –string ‘WordPress’ –algo kmp -j DROP

or

iptables -N WordPress-PingVerify
iptables -I INPUT -p tcp –dport 80 -m string –to 70 –algo bm –string ‘GET /’ -j WordPress-PingVerify
iptables -A WordPress-PingVerify -p tcp –dport 80 -m string –to 80 –algo bm ! –string ‘User-Agent: WordPress/’ -j RETURN
iptables -A WordPress-PingVerify -p tcp –dport 80 -m string –to 300 –algo bm –string ‘verifying pingback from’ -j DROP
iptables -A WordPress-PingVerify -j RETURN

or

iptables -N WordPress-PingBacks
iptables -I INPUT -p tcp –dport 80 -m string –to 70 –algo bm –string ‘GET /’ -j WordPress-PingBacks
iptables -A WordPress-PingBacks -p tcp –dport 80 -m string –to 80 –algo bm ! –string ‘User-Agent: WordPress/’ -j RETURN
iptables -A WordPress-PingBacks -p tcp –dport 80 -j DROP
iptables -A WordPress-PingBacks -j RETURN

SMTP Mail protection has been disabled. All users may make smtp connections.

/scripts/smtpmailgidonly on
SMTP Mail protection has been disabled. All users may make smtp connections.
There was a problem setting up iptables. You either have an older kernel or a broken iptables install, or ipt_owner could not be loaded.

cat /proc/net/ip_tables_matches | grep owner
modprobe xt_owner

/scripts/smtpmailgidonly on
SMTP Mail protection has been enabled.
All outbound SMTP connections will be redirected to localhost except:
uid is root (ports: 25,26,465,587)
uid is cpanel (ports: 25,26,465,587)
gid is mail (ports: 25,26,465,587)
gid is mailman (ports: 25,26,465,587)

FAILURE [3; /opt/curlssl/bin/curl] https://server.com/install/index.php?installFixtures=true&_1518181922185 [http code=0; timeout=10]

Installatron error:

FAILURE [3; /opt/curlssl/bin/curl] https://server.com/install/index.php?installFixtures=true&_1518181922185 [http code=0; timeout=10]

You should fine all htaccess and disable them, if they have some server side directives like AddHandler and etc.

If that didn’t work then we’ll try a debug log;

. First, just before you press the [Install] button run these commands:
rm -f /var/installatron/logs/*
echo “debug=yes” >> /usr/local/installatron/etc/settings.ini
. Now press the [Install] button.
. Then when the install process fails immediately remove “debug=yes” from the end of: /usr/local/installatron/etc/settings.ini

That will build a detailed ‘debug_log’. They aren’t always easy to read

composer no output

You can found check problem like this:
curl -s https://getcomposer.org/installer | php — –check
suhosin.executor.include.whitelist = phar

to disable suhosin run:
mkdir /root/bin && curl -sS https://getcomposer.org/installer | php -n — –install-dir=/root/bin
/usr/local/php56/bin/php56 -n /root/bin/composer.phar require league/some_package

lxc-start: lxccontainer.c: wait_on_daemonized_start: 754 Received container state “STOPPING” instead of “RUNNING”

It could be cause by this libvirt error: libvirtd[18329]: Failed to open file ‘/sys/class/net/vethSUT3FA/operstate’: No such file or directory

Fix:
brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.525400a97813 yes virbr0-nic

vim /var/lib/lxc/my_server/config
lxc.network.link = virbr0

lxc-start -n my_server -d