Mail Server

I finally set up my own mail server using a couple guides. Just putting this here for my memory How to set up the server   When put behind cloudflare you need to add the bellow to /etc/nginx/nginx.conf in the http { location Enable PHP Sockets How to install and set up roundcube Allow roundcube […]

Read More

IPTables Fun

I found these scripts years ago and decided to use them. I might as well share them First the ipset and iptables need to be installed Now we need to create the ipset lists script to update files and countries. If you go to the ipdeny site you can find which countries you can add. […]

Read More

Install php7, nginx, mariadb centos 7

I am not a pro, this is just what I’ve learned over the years and noticed that a bunch of tutorials didn’t have all the info I needed/used so I figured I’d make my own. rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum update yum install -y nginx mariadb-server mariadb git yum –enablerepo=remi-php72 install php-fpm php-common php-opcache php-pecl-apcu php-cli […]

Read More

Useful Scripts

for f in *; do cd $f; mv * ..; cd ..; rmdir $f; done find . -type f ! -iname “*.mp4” ! -iname “*.jpg” ! -iname “*.wmv” ! -iname “*.mkv” ! -iname “*.mpg” ! -iname “*.avi” ! -iname “*.m4v” sed ‘s#^#what to add to begging of line#’ oldfile > newfile sed ‘s#$#text to add […]

Read More

Docker and IP-Tables

Over the weekend I got attacked. I realized the cause of this was because I rebooted my server and the docker IPTables rules overwrote the IPTables-Persistent rules I had. After realizing this was the case I uninstalled docker since I wasn’t using it and while I was making firewall changes I set up ipset to […]

Read More

Install KodExplorer

How I installed KodExplorer. This is running on Debian 8.1. Things might be different on whatever OS/Version you’re running. I am by no means a pro. This is pieced together from everything I’ve learned. You first have to install nginx and php apt install ngnix php5-fpm git if it’s a newer version of debian or […]

Read More