• Home
  • WordPress
  • web Hosting
    • Free hosting
    • Cheap Hosting
    • comparison cloud , vps, shared, wordpress
    • managed wordpress hosting
    • managed cloud hosting
  • page Speed
  • Deals
  • Services
  • About

RAaz Kumar .com

wordpress tutorials seo hosting etc


Ip tables / ufw / firewall d commands for block port ip rate limiting

Ip tables explained very fast

Used to filter the network traffic to avoid DDoS attack.
rate limiting
Blocking ports
Targets
Drop: block traffic
Accept: allow
Reject: block with a message to end-user.
Chains:
Input:
forward:
output:
sudo iptables -A/-I chain_name -s source_ip -p
Options
-s source big the packet ipaddress
-j action to take
-p protocol name TCP/udp, – -dport= dportnumber
-P change rule / policy
-D deleting the rule
-a append end of the file
sudo iptables -A
-i  append rule start of the file
sudo iptables -I
Ex:
sudo iptables -A INPUT -s 192.168.1.3 -p tcp –dport 22 -j ACCEPT
note: ip table ignores the last /2nd rule if first or top rule matches with connection. Top to bottom approach.
Ip tables block ip address rule example
sudo iptables -A/-I chain_name -s source_ip -j action_to_take
iptables -A INPUT -s 192.168.1.3 -j DROP
To list the rules
sudo iptables -L
To clear rules
sudo iptables -F
Deleting rule from iptables
sudo iptables -D chain_name rule_number
sudo iptables -D INPUT 1

Firewalld:

default in redhat family CentOS, fedora
part of systemd
firewalld uses zones and services instead of chain and rules
make sure stop iptables before installing firewalld
sudo yum install firewalld firewall-config -y
sudo apt-get install firewall-applet
Commands
sudo firewall-cmd –get-active-zones
sudo firewall-cmd –get-zones
sudo firewall-cmd –get-default-zone
sudo firewall-cmd –get-services
sudo systemctl status firewalld
add port, delete port using firewalld but I like ufw.
sudo service iptables options
,(stop / start / restart/ reload)
sudo /etc/init.d/iptables options
sudo service ufw options
Ufw vs iptables
Ufw is new interface for iptables easy to understand
If you add/change rule with ufw. It automatically changes the iptable rules.
Block port scanning
sudo iptables -A block-scan -j DROP
Check open ports in your server
SMTP/Mail port: 25
 block it if you use email
Ftp:21 (also block it )
SFTP&ssh 22(necessary)
port: 80 web,443ssl,3306mysql
selinux

Related topics:

  1. lsof netstat commands to know listening ports in linux 3 ways
  2. Upgrade Ubuntu from 18.04 (19.10) to 20.04 LTS command line or gui server | desktop
  3. mysql commands
  4. Linux sysadmin tutorials linux system administrator
  5. Tata Docomo customer care number, internet balance check, DND, PORT, User review

tutorials

  • Vivek Bindra Videos Transcription (business strategy)
  • git commands
  • new relic php agent install in 3 steps
  • new relic mysql install integration - 2 ways fix problems
  • new relic installation linux (infrastructure agent , php, mysql , nginx)
  • xampp tutorials 2021 installation errors fix wordpress phpmyadmin mysql apache
  • Redis performance metrics & tuning for nginx apache ubuntu & debian
  • Devops course Syllabus topics PDF AWS, Azure, cisco, redhat
  • CCNA Syllabus pdf (CCNA / CCNP vs devops vs mcsa /MCSE)
  • how to create a website free of cost on google
  • what is vpn vs proxy vs tor, http vs https, http2, tcp vs udp, kali linux sql source code injection
  • nginx server tutorials (installation, configuration, performance tuning, security)
  • MySQL Tutorial (create,connect database, update tables, export etc) Documentation & TIPS
  • AUdio Editing Background Noise removal (Audacity, Adobe Premiere Addition, Camtasia Filmora Windows Obs)
  • Android Studio tutorials syllabus Topics Course details #AndroidApplicationDevelopment
  • [INTRO] Ethical hacking / cyber Security / Penetration testing Tutorial -{updates frequently}
  • redis install ubuntu 20.04 with wordpress php redis mysql configuration
  • ubuntu tutorials installation download issues etc
  • Php tutorials
  • HTML & CSS Tutorials
  • Core Java Tutorial Free online
  • Linux sysadmin tutorials linux system administrator
    • linux security limits.conf deciding user limits process limits for nginx server
    • remove repository ubuntu
    • increase open file limit linux File descriptor ft nginx , mysql, lemp
    • how to uninstall package in linux ubuntu rpm, yum apt-get
    • rsync command linux with examples comparison to scp
    • check linux version (lsb_release -a) ubuntu debian 32 or 64 bit
    • memcached install ubuntu wordpress
    • ping command
    • change ssh port in linux - avoid sshd ddos attacks
    • ddos attack prevention
    • ufw firewall commads allow port enable disable ubuntu 20.04
    • red hat linux certification cost jobs salary syllabus courses fees
    • ulimit linux unlimited command unlimto set & know user limits open files file descriptor max user process etc.
    • top 10 apt & apt-get commands (most used) apt vs apt-get
    • linux sysctl command tweaks & hardening
    • linux system specs commands (CPU, Memory, Disk )speed, type. manufacture
    • 3 Ways (SCP, rsync, Sftp) linux server migration between two remote server apache nginx
    • Upgrade Ubuntu from 18.04 (19.10) to 20.04 LTS command line or gui server | desktop
    • lsof netstat commands to know listening ports in linux 3 ways
    • Top 10 GREP Commands in linux to search files directory words strings
    • TOP 10 mv & cp commands in linux to move & copy files in Linux
    • Top 10 zip / tar commands to compress & extract files in linux
    • Ip tables / ufw / firewall d commands for block port ip rate limiting
    • Top 10 most used Cat commands with examples (create, view, append files)
    • linux performance tuning inode limit file descriptors tco, kernel etc
    • linux commands pdf (files & Directories, zip & unzip process, search etc)
  • apache server tutorial (install,config, performance tuning, security, error handling)

 

 

wordpress Pagespeed optimization

Digitalocean free $100 Credit

Cloudways Review pricing promo codes

Siteground cpu limits Pricing

Shared Hosting

Managed wordpress Hosting

Managed Hosting Cloud server

VPS Hosting

Cloud Hosting – Unmanaged

Google cloud Pricing

Aws Pricing

Azure pricing

nginx server tutorials

apache server tutorials

linux sysadmin tutorials

mysql Commands list pdf

LEMP Install Ubuntu

Mysql Performance Tuning

Nginx Performance tuning

Linux Performance tuning

Php -fpm performance tuning

Redis Performance tuning

linux server security

nginx security best practices

wordpress security plugins

 

 

wordpress

 

Top 5  WP Google Analytics Plugins

WP Backup Plugins

Wp Comment Plugins

Top wordpress Security Plugins

WP Seo Plugins

WP Caching Plugins

Best Adsense Plugins for WordPress

Wp social Sharing Plugins

autoshare social media plugins

WP speed Optimization Plugins

Speedup WordPress google Score

More Wp tuts

Server Admin Cloud

 

Installing Nginx LEMP On ubuntu

Installing apache Lamp ubuntu

nginx fastcgi cache enable

php – fpm install  & Configuration

Opcache install & Configure

php -fpm pool manager explained

Mysql Install & Configuration

Redis Object cache install & configure

 

Nginx as Reverse Proxy and Load balancer

Load Balance / auto scaling in google cloud

Linux Commands PDF

Mysql Commands Pdf

Letsencrypt tutorial

mysqldump export & import 

Pagespeed Module install & configure

nginx.conf best file

mysql.conf best file

upgrade ubuntu

© 2023 - All Rights Reserved Disclaimer & Privacy Policy