Score:0

iptables input drop from ip changed to 0.0.0.0

ls flag

I need block IP range cause they uses bots. I'm enter two commands:

iptables -A INPUT -s 46.148.40.0/2 -j DROP
iptables -A INPUT -s 141.98.10.0/2 -j DROP

But in iptables-save it looks like

-A INPUT -s 127.0.0.0/2 -j DROP
-A INPUT -s 0.0.0.0/2 -j DROP

I try save it to file, edit and restore, but it transform to 0.0.0.0/2 and 127.0.0.1/2 again.

Then I tried ufw:

ufw deny from 46.148.40.0/2 to all
ufw deny from 141.98.10.0/2 to all

ufw status return

Anywhere                   DENY IN     0.0.0.0/2
Anywhere                   DENY IN     127.0.0.1/2

What I am doing wrong?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.