Skip to content
FELIPE FERREIRA

FELIPE FERREIRA

System Administrator

  • Home
    • ME
    • Hobby
      • Motogp
  • Linux
    • Amazon-AWS
    • bash
    • LinuxCommands
    • Varnish
    • Centos
    • BashScripts
    • tomcat
  • Exchange
  • ESX
  • Varnish
  • Security
  • Centreon

Category: BashScripts

By : Felipe Ferreira21/02/201823/05/2019
bash, BashScripts, HowTo, Linux Leave a Comment on chroot mount bind

chroot mount bind


mkdir -v -p /sftp/root/${USER}/home
chown root.root /sftp/root/${USER}
mount –bind //${DIR} /sftp/root/${USER}/home
useradd -g tomcat -s /sbin/nologin ${USER}

sshd_config

Match Group tomcat
AllowTcpForwarding no
ForceCommand internal-sftp -u 0002 -d home
…

View the post
Tags: bind, chroot, Linux, mount, script
By : Felipe Ferreira01/03/201710/07/2019
BashScripts, Centreon 2 Comments on Centreon reporting email

Centreon reporting email

I had created a Nagios Script for auto e-mailing reports.

 

There are two versions available one that just gets the current “Reporting” csv and e-mail it and another one I …

View the post
Tags: auto, bash, centreon, email, Reporting, script
By : Felipe Ferreira23/02/201723/05/2019
bash, BashScripts Leave a Comment on monitor site IPS

monitor site IPS

A poor man Intrusion Prevention System

this script and block bad IPs even know I use modeavsive to block more then X concurrent connections from one IP my site keeps …

View the post
By : Felipe Ferreira12/01/201723/05/2019
bash, BashScripts, Linux, Security Leave a Comment on yum update security check script

yum update security check script

simple bash script to check for missing security this is important to make sure your linux is updated here is the script:
View the post
Tags: bash, security, Update, Yum
By : Felipe Ferreira14/11/201623/05/2019
bash, BashScripts, HowTo, Linux, LinuxCommands, script, Security Leave a Comment on Reverse SSH Tunnel

Reverse SSH Tunnel

The idea is to have my IP autostart connect to my Cloud server,
this way I can remote control my Raspberry PI without having to configure DynDNS and firewall rules.…

View the post
Tags: Linux, Reverse, script, ssh, tunnel
By : Felipe Ferreira20/05/201623/05/2019
bash, BashScripts, HowTo, Tomcat Leave a Comment on tomcat multiple instances script

tomcat multiple instances script

This scripts is easy to use and creates multiple tomcats on a single server.
I still find it amazing and sad that by default and by RedHat support, you can …

View the post
By : Felipe Ferreira25/04/2016
BashScripts, HowTo, Linux Leave a Comment on iptables block country script

iptables block country script

My own server is daily attacked by SSH scanner and bruteforce scripts.
My fail2ban solution
But as I get hammered by China’s ssh I got tired of it and block …

View the post
Tags: bash, country, deny, IP, ipset, Iptables, Linux, script

Posts navigation

1 2 … 5 Next

Recent Posts

  • AWS Solution Architect Study Guide
  • check_vmware_esx slow
  • Linux End of Life table

Categories

SEARCH

https://www.buymeacoffee.com/felipeferreira
All Right Reserve. Theme: Franchise by Moral Themes.