Skip to content

Instantly share code, notes, and snippets.

View devops-school's full-sized avatar

DevOps School devops-school

View GitHub Profile
@devops-school
devops-school / README.md
Created November 14, 2024 09:38
List of options to Preventing from DDOS attack in AWS Security Group.

AWS Security Group Configuration Options for DDoS Prevention

1. Restrict SSH Access to Specific IP Addresses

Instead of allowing SSH (port 22) from anywhere (0.0.0.0/0), specify only trusted IP addresses or IP ranges.

This limits access to only authorized users, preventing random connection attempts.

Inbound Rule:

  • Type: SSH
  • Protocol: TCP
  • Port Range: 22
  • Source:
@devops-school
devops-school / README.md
Created November 14, 2024 09:36
List of options to change in SSH configuration from Preventing from DDOS attack

Open SSH configuration file

sudo nano /etc/ssh/sshd_config

Recommended Options to Harden SSH Configuration

1. Limit the Number of Concurrent Sessions (per connection)

MaxSessions 2

Controls the maximum number of sessions per network connection. Lowering this reduces exposure to excessive simultaneous sessions.

2. Limit Unauthenticated Connection Attempts

@devops-school
devops-school / README.md
Last active November 14, 2024 09:34
List of Commands to Check, Add, Edit Firewall configuration of SSH in ubuntu

UFW (Uncomplicated Firewall) Commands --

1. Check UFW Status and Rules

sudo ufw status verbose # View current firewall status and rules sudo ufw status # Check if UFW is enabled

2. Allow SSH on Port 22

sudo ufw allow 22/tcp # Allow SSH (port 22) from any IP sudo ufw allow from x.x.x.x to any port 22 # Allow SSH from specific IP (replace x.x.x.x with IP)

@devops-school
devops-school / 04-LogisticRegressionForPriceClassification.ipynb
Created November 13, 2024 18:23
Machine Learning – scikit-learn – Lab 4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devops-school
devops-school / 03-LinearRegressionForPricePrediction.ipynb
Created November 13, 2024 18:22
Machine Learning – scikit-learn - Lab 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devops-school
devops-school / 02-ExploringTheCaliforniaHousingDataset.ipynb
Last active November 13, 2024 18:21
Machine Learning – scikit-learn - Lab 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devops-school
devops-school / 01-ExploringDatasets_complete_explanations.ipynb
Created November 13, 2024 18:18
Machine Learning – scikit-learn - Lab 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devops-school
devops-school / Jupyter-notebook-Panda-Introduction.ipynb
Created November 10, 2024 09:37
Jupyter notebook – Lab Session – 12 – Panda Introduction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devops-school
devops-school / Jupyter-notebook-Numpy-Introduction.ipynb
Created November 10, 2024 09:35
Jupyter notebook – Lab Session – 11 – Numpy Introduction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devops-school
devops-school / Jupyter-notebook-DataTypes-Variables-checkpoint.ipynb
Created November 10, 2024 09:33
Jupyter notebook – Lab Session – 10 – Introduction of Data Types, Variables & checkpoint
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.