Breaking News
light_mode
Trending Tags
Beranda » Linux Debian » How to view and open blocked IPs by IP Tables & Fail2ban

How to view and open blocked IPs by IP Tables & Fail2ban

  • account_circle Pengelola
  • calendar_month Sabtu, 17 Okt 2020
  • visibility 33
  • comment 0 komentar

This opportunity I will write a guide on how to remove the IP address that has been blocked by fail2ban.

Whether it’s because of attacks / attacks or because we often enter the wrong password.

In essence fail2ban works in conjunction with iptables for closing ip that is suspected of attacking our computer

Below are the steps and the steps to remove the ip from iptables.

run this command to see all rules in iptables, emphasize that it exists in the root model in your terminal

$ # iptables -L –line-number

The results will of course vary. Mine is like this:

Chain INPUT (policy DROP)
num target prot opt source destination
1 f2b-sshd tcp – anywhere anywhere multiport dports ssh
2 fail2ban-VESTA tcp – anywhere anywhere tcp dpt: 8083
3 fail2ban-MAIL tcp – anywhere anywhere multiport dports smtp, urd, submission , 2525, pop3, pop3s, imap2, imaps
4 fail2ban-FTP tcp – anywhere anywhere tcp dpt: ftp
5 fail2ban-SSH tcp – anywhere anywhere tcp dpt: ssh
6 ACCEPT all – anywhere anywhere state RELATED, ESTABLISHED
7 ACCEPT all – sgv1. jogjapromo.com anywhere
8 ACCEPT all – localhost anywhere
9 ACCEPT tcp – anywhere anywhere tcp dpt: ssh
10 ACCEPT tcp – anywhere anywhere multiport dports http, https
11 ACCEPT tcp – anywhere anywhere multiport dports ftp, 12000: 12100
12 ACCEPT udp – anywhere anywhere udp get: domain
13 ACCEPT tcp – anywhere anywhere tcp dpt: domain
14 ACCEPT tcp – anywhere anywhere multiport dports smtp, urd, submission, 2525
15 ACCEPT tcp – anywhere anywhere multiport dports pop3, pop3s
16 ACCEPT tcp – anywhere anywhere multiport dports imap2, imaps
17 ACCEPT tcp – anywhere anywhere multiport dports mysql, postgresql
18 ACCEPT tcp – anywhere anywhere tcp can: 8083
19 ACCEPT icmp – anywhere anywhere

Chain FORWARD (policy ACCEPT)
num target prot opt ??source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt ??source destination

Chain f2b-sshd (1 references)
num target prot opt ??source destination
1 REJECT all – 156.215.121.34.bc.googleusercontent.com anywhere reject-with icmp-port-unreachable
2 REJECT all – 191.232.234.0 anywhere reject-with icmp-port -unreachable
3 REJECT all – pool-37-83-126-181.telecel.com.py anywhere reject-with icmp-port-unreachable
4 REJECT all – ns506885.ip-198-27-82.net anywhere reject-with icmp -port-unreachable
5 REJECT all – host-195-223-211-242.business.telecomitalia.it anywhere reject-with icmp-port-unreachable
6 REJECT all – 302.ahorasoft.com anywhere reject-with icmp-port-unreachable
7 REJECT all – 150.136.81.55 anywhere reject-with icmp-port-unreachable
8 REJECT all – 198.199.125.87 anywhere reject-with icmp-port-unreachable
9 REJECT all – 46.30.19.175.adsl-pool.jlccptt.net.cn anywhere reject-with icmp-port-unreachable
10 REJECT all – 124.160.83.138 anywhere reject-with icmp-port-unreachable
11 REJECT all – cpe-66-68-187-140.austin.res.rr.com anywhere reject-with icmp-port-unreachable
12 REJECT all – 129.226.114.97 anywhere reject-with icmp -port-unreachable
13 REJECT all – mail.folloelektriske.no anywhere reject-with icmp-port-unreachable
14 REJECT all – host-156.215.195.50-static.tedata.net anywhere reject-with icmp-port-unreachable
15 REJECT all – 194.152.206.93 anywhere reject-with icmp-port-unreachable
16 REJECT all – bd07813c.virtua.com.br anywhere reject-with icmp-port-unreachable
17 RETURN all – anywhere anywhere
18 RETURN all – anywhere anywhere

Chain fail2ban-FTP (1 references)
num target prot opt ??source destination
1 RETURN all – anywhere anywhere

Chain fail2ban-MAIL (1 references)
num target prot opt ??source destination
1 REJECT all – 212.70.149.68 anywhere reject-with icmp-port-unreachable
2 REJECT all – 45.142.120.15 anywhere reject-with icmp-port-unreachable
3 REJECT all – 45.142.120.20 anywhere reject-with icmp-port-unreachable
4 RETURN all – anywhere anywhere

Chain fail2ban-SSH (1 references)
num target prot opt ??source destination
1 REJECT all – 156.215.121.34.bc.googleusercontent.com anywhere reject-with icmp-port-unreachable
2 REJECT all – 191.232.234.0 anywhere reject-with icmp-port -unreachable
3 REJECT all – pool-37-83-126-181.telecel.com.py anywhere reject-with icmp-port-unreachable
4 REJECT all – ns506885.ip-198-27-82.net anywhere reject-with icmp -port-unreachable
5 REJECT all – host-195-223-211-242.business.telecomitalia.it anywhere reject-with icmp-port-unreachable
6 REJECT all – 302.ahorasoft.com anywhere reject-with icmp-port-unreachable
7 REJECT all – 150.136.81.55 anywhere reject-with icmp-port-unreachable
8 REJECT all – 198.199.125.87 anywhere reject-with icmp-port-unreachable
9 REJECT all – 46.30.19.175.adsl-pool.jlccptt.net.cn anywhere reject-with icmp-port-unreachable
10 REJECT all – 124.160.83.138 anywhere reject-with icmp-port-unreachable
11 REJECT all – cpe-66-68-187-140.austin.res.rr.com anywhere reject-with icmp-port-unreachable
12 REJECT all – 129.226.114.97 anywhere reject-with icmp -port-unreachable
13 REJECT all – mail.folloelektriske.no anywhere reject-with icmp-port-unreachable
14 REJECT all – host-156.215.195.50-static.tedata.net anywhere reject-with icmp-port-unreachable
15 REJECT all – 194.152.206.93 anywhere reject-with icmp-port-unreachable
16 REJECT all – bd07813c.virtua.com.br anywhere reject-with icmp-port-unreachable
17 REJECT all – korematsu.tor-exit.calyxinstitute.org anywhere reject-with icmp-port-unreachable
18 RETURN all – anywhere anywhere

Chain fail2ban-VESTA (1 references)
num target prot opt ??source destination
1 RETURN all – anywhere anywhere

Now my results display as above.

To delete it, for example I want to delete 129.226.114.97 chain fail2ban-SSH   then the command is:

iptables -D fail2ban-SSH 12

The meaning of the command above is that we will tell iptables to delete ( -D ) rules in iptables with chain name (fail2ban-SSH) with the order no ( 12 ).

Hopefully can help.

  • Penulis: Pengelola

Komentar (0)

Saat ini belum ada komentar

Silahkan tulis komentar Anda

Email Anda tidak akan dipublikasikan. Kolom yang bertanda bintang (*) wajib diisi

Rekomendasi Untuk Anda

  • kajigelem - wisata kuliner dan edukasi bangunjiwo

    Kajigelem – Culinary and Education Tour Bangunjiwo – Kasihan Yogyakarta

    • calendar_month Rabu, 27 Jan 2021
    • account_circle Pengelola
    • visibility 28
    • 0Komentar

    Kajigelem – Culinary and Education Tour Bangunjiwo – Kasihan YogyakartaJl Kasongan Km 1,5Bulak Sekarpetak Gedongan Bangunjiwo reservation & orderPhone or WhatsApp: 0813 2843 1269 Various Menu of Kajigelem Rice Field Coffee:Rica-rica chickenLeleLodehPecel riceFried angetVarious Beverages

  • Desa Wisata Jipangan

    Desa Wisata Jipangan

    • calendar_month Kamis, 3 Des 2020
    • account_circle Pengelola
    • visibility 30
    • 0Komentar

    Desa Wisata Jipangan disingkat Dewi Jipang adalah sebuah Dusun Rekreasi Jipangan yang dikenali dengan beragam kekayaan alam dan kerajinan kipasnya. Biasa disingkat DEWI JIPANG dusun ini berada +- 2,5 km di samping selatan Sentral kerajinan gerabah Kasongan. Secara geografis, Dusun Rekreasi Jipangan masuk ke daerah kelurahan Bangunjiwo, Kecamatan Kasihan, Kabupaten Bantul, Yogyakarta. Pencanangan Dusun Rekreasi […]

  • Jogja Umrah Packages

    Jogja Umrah Packages

    • calendar_month Sabtu, 30 Jan 2021
    • account_circle Pengelola
    • visibility 32
    • 0Komentar

    Please plan your and your family’s Umrah & Hajj Plus in 2021 with AMANA TOUR & TRAVEL . Jogja Umrah Packages for the Period of February – March 2021 & Umrah Romadhon UMROH NEW NORMALAge 18-60 years? 08,17,25 Feb 2021? 07,15,26 Mar 2021? Mecca: International Zowar? Medina: Sheraton – Le Meredien Towers?? Citilink?? 10 Day Program? Rp. 28,500,000? 10-day Romadhon Early & Middle Umrah ProgramIDR […]

  • Pantai Parangtritis Yogyakarta

    Jogja Tour Package – ODT-JP1 Package (One Day Trip Jogja Promo 1)

    • calendar_month Selasa, 27 Okt 2020
    • account_circle Pengelola
    • visibility 36
    • 0Komentar

    Jogja Tour Package – ODT-JP1 Package (One Day Trip Jogja Promo 1) One Day Trip Jogja Promo . A Walk From Morning To Night. We pick up. Just sit down. We take you around Jogja. Jogja Tour Package Rp. 600 rb for 7 people Max. Tour to Kalibiru – Pule Payung – Parangtritis Beach – Gumuk Pasir – Alun Alun Selatan. Only Rp […]

  • House for sale, location: Perum Bangunjiwo Sejahtera

    House for sale, location: Perum Bangunjiwo Sejahtera

    • calendar_month Sabtu, 23 Jan 2021
    • account_circle Pengelola
    • visibility 28
    • 0Komentar

    For Sale House Type: 32/72Location: Bangunjiwo Sejahtera Housing, Kasihan BantulSHM, Down Payment: 6 million, 15 years old KPR, Installment: 400 thousandHub. : 687 2324 SORRY … SOLD OUT – Sold

  • Borobudur

    Borobudur Temple

    • calendar_month Minggu, 1 Nov 2020
    • account_circle Pengelola
    • visibility 41
    • 0Komentar

    Borobudur is a legacy of the Sailendra dynasty. The Sailendra dynasty made up the greatest Buddhist legacy in the world between 780-840 AD. The Sailendra dynasty was the ruling dynasty at that time. This legacy was made as a place of Buddhist worship as well as a place of pilgrimage. Borobudur contains guidelines so that humans avoid the […]

expand_less