Raspberry Pi Access Point How To
OBJECTIVE:
Raspberry Pi as an Access Point to route all DHCPD clients via (external server, outside my country)
INTRO:
I already have a server …
Gitea how to install
1) Pre-Requisite
# Install Mariadb
yum -y install mariadb
mysql -u root -p
CREATE DATABASE gitea;
CREATE USER ‘gitea’@’localhost’;
SET PASSWORD FOR ‘gitea’@’localhost’ = PASSWORD(‘NEW_gitea’);
grant all privileges on gitea.* …
How to install gogs on centos7
# INSTALL GO and Gogs (github opensource server) on CENTOS 7
wget “https://dl.google.com/go/go1.10.linux-amd64.tar.gz”
mv go1.10.linux-amd64.tar.gz /usr/local/
cd /usr/local/
tar -zxvf go1.10.linux-amd64.tar.gz
ln -s /usr/local/go/bin/go /usr/local/bin/go
ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc
ln …
chroot mount bind
mkdir -v -p /sftp/root/${USER}/home
chown root.root /sftp/root/${USER}
mount –bind /
useradd -g tomcat -s /sbin/nologin ${USER}
sshd_config
…
Match Group tomcat
AllowTcpForwarding no
ForceCommand internal-sftp -u 0002 -d home
ssh tunnel squid proxy setup
SSH is a very secure encrypted connection. Much much easier to setup then a VPN.
its quite easy to setup, on the server side all we need is Open SSH …
varnish for wordpress
/etc/yum.repos.d/varnish.repo
[varnishcache_varnish41]
name=varnishcache_varnish41
baseurl=https://packagecloud.io/varnishcache/varnish41/el/6/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/varnishcache/varnish41/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
OK, ready then
yum clean all
yum install varnish
Check the version:
…
# /usr/sbin/varnishd -V
varnishd (varnish-4.1.8 revision d266ac5c6)
ipset and iptables
Got IP zones from the internet:
wget http://www.ipdeny.com/ipblocks/data/countries/all-zones.tar.gz
gunzip -d all-zones.tar.gz ; tar -xvf all-zones.tar
Then with ipset
…
ipset create onlyita hash:net hashsize 64000
while read ip; do echo $ip