Git Product home page Git Product logo

fast_set_centos's Introduction

fast_set_centos

Author:Yan Zeng

E-mail:[email protected]

License:MIT

This is a set of system scripts, which is used to ensure server security in the public internet.

The scripts can run on Centos7 system.

#Program: this program is a fast setting for new centos 7 system. it should be root to use this program! include function: 1.open ssh service 2.set personal terminal syntax: root and all user 3.etc. #History:

Yan Zeng 20170210 version 1.0

Yan Zeng 20171216 version 1.2

	1.add network setting
	2.add software shutcuts

Yan Zeng 20190928 version 1.3

	1.Add support to centos-8, this script will nolonger support centos7.
	2.Add Network Security System Scripts
	3.Add vim 8 global configue file 'defaults.vim'

Functions of configures

install abaqus 2017

    1.change the hostname in license before copy the license.
    2.input the new hostname
    3.if cae running wrong due to teaching license, then delete the last row of
    /opt/DassaultSystemes/SimulationServices/V6R2017x/linux_a64/SMA/site/custom_v6.env

install ansys18.0

    1.input the host name as real hostname 

Functions of Network Security System Scripts

deny_ssh_hosts.sh

This script analysis /var/log/secure file to find the ip address whose the number of failed times is greater than 3.

Then the script add the ipaddress to /etc/hosts.deny to reject ssh connection.

drop_ssh_hosts_local.sh

This script find the ip do the following things

1.Add the ip to firewall drop zone.
2.Add the ip to firewall ipset ssh_drop --permanent
3.This script will NOT add the ip which is already in ipset ssh_drop.
4.You should run the following command to add the ipset into firewall.
firewall-cmd --permanent --zone=public --add-rich-rule="rule family=ipv4 source ipset=ssh_drop drop"
and add the following line in /etc/crontab to run every minite
*/1 * * * * root /usr/local/sbin/drop_ssh_hosts_local.sh 1>&2> /dev/null

drop_ssh_hosts_public.sh

If you have a ip list from internet and you want to drop them, then you can save the ip address in a file at /var/log/drop_ssh_hosts_public.

Run this script you can add the ip address in the drop zone in firewall.

This script will NOT add the ip which is already in firewall drop zone.

dnspod_ddns.sh

2019-10-22 updated
This program is for ddns on local host, using bash shell.
This program has less dependence for esay using on a lot of kind of systems.

The jq version depends on jq on your system.

pppoe_reconnect.sh

If ISP auto enforces change IP address but the IP address is not change in interface, NetworkManager is not able to auto reconnect. This program helps to detect the invalid connection and reconnect.

fast_set_centos's People

Contributors

yzeng1995 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.